thabloid package¶
Submodules¶
thabloid.admin module¶
-
class
thabloid.admin.
ThabloidAdmin
(model, admin_site)[source]¶ Bases:
django.contrib.admin.options.ModelAdmin
Admin class for Thabloid objects.
-
form
¶ alias of
thabloid.admin.ThabloidAdminForm
-
list_filter
= ('year',)¶
-
property
media
¶
-
thabloid.apps module¶
thabloid.models module¶
-
class
thabloid.models.
Thabloid
(*args, **kwargs)[source]¶ Bases:
django.db.models.base.Model
Model representing a Thabloid.
-
exception
DoesNotExist
¶
-
exception
MultipleObjectsReturned
¶
-
property
cover
¶ Return first page as cover.
-
file
¶ The descriptor for the file attribute on the model instance. Return a FieldFile when accessed so you can write code like:
>>> from myapp.models import MyModel >>> instance = MyModel.objects.get(pk=1) >>> instance.file.size
Assign a file object on assignment so you can do:
>>> with open('/path/to/hello.world') as f: ... instance.file = File(f)
-
id
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
issue
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
objects
= <django.db.models.manager.Manager object>¶
-
property
pages
¶ Return urls of pages that should be shown together.
-
year
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
exception
thabloid.sitemaps module¶
-
class
thabloid.sitemaps.
StaticViewSitemap
[source]¶ Bases:
django.contrib.sitemaps.Sitemap
Sitemap of the static thabloid index page.
-
changefreq
= 'monthly'¶
-
thabloid.urls module¶
The routes defined by the thabloid package.