merchandise package¶
Submodules¶
merchandise.admin module¶
Registers admin interfaces for the models defined in this module.
-
class
merchandise.admin.MerchandiseItemAdmin(model, admin_site)[source]¶ Bases:
utils.translation.TranslatedModelAdminThis manages the admin interface for the model items.
-
exclude= None¶
-
fields= ('name_en', 'price', 'description_en', 'image')¶ Included fields in the admin interface
-
property
media¶
-
search_fields= ()¶
-
merchandise.apps module¶
Contains the appconfig for the merchandise module.
merchandise.models module¶
Models for the merchandise database tables.
-
class
merchandise.models.MerchandiseItem(*args, **kwargs)[source]¶ Bases:
django.db.models.base.ModelMerchandise items.
This model describes merchandise items.
-
exception
DoesNotExist¶
-
exception
MultipleObjectsReturned¶
-
property
description¶ Description of the merchandise item
-
description_en¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
id¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
image¶ Image of the merchandise item
-
property
name¶ Name of the merchandise item.
-
name_en¶ 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>¶
-
price¶ Price of the merchandise item
-
exception
merchandise.sitemaps module¶
Gives sitemaps for the merchandise package.
-
class
merchandise.sitemaps.StaticViewSitemap[source]¶ Bases:
django.contrib.sitemaps.SitemapGenerate the sitemap of the index page.
-
changefreq= 'monthly'¶
-
-
merchandise.sitemaps.sitemap= {'merchandise-static': <class 'merchandise.sitemaps.StaticViewSitemap'>}¶ The site maps defined by this module