thabloid package¶
Submodules¶
thabloid.admin module¶
-
class
thabloid.admin.
ThabloidAdmin
(model, admin_site)[source]¶ Bases:
django.contrib.admin.options.ModelAdmin
-
form
¶ alias of
ThabloidAdminForm
-
list_filter
= ('year',)¶
-
property
media
¶
-
thabloid.apps module¶
thabloid.models module¶
-
class
thabloid.models.
Thabloid
(id, year, issue, file)[source]¶ Bases:
django.db.models.base.Model
-
exception
DoesNotExist
¶
-
exception
MultipleObjectsReturned
¶
-
property
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
¶
-
save
(*args, wait=False, **kwargs)[source]¶ Save the current instance. Override this in a subclass if you want to control the saving process.
The ‘force_insert’ and ‘force_update’ parameters can be used to insist that the “save” must be an SQL insert or update (or equivalent for non-SQL backends), respectively. Normally, they should not be set.
-
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
-
changefreq
= 'monthly'¶
-
thabloid.urls module¶
The routes defined by the thabloid package