diff options
Diffstat (limited to 'app/src')
-rw-r--r-- | app/src/admin.py | 2 | ||||
-rw-r--r-- | app/src/models.py | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/app/src/admin.py b/app/src/admin.py index cd6ba1d..76f09a2 100644 --- a/app/src/admin.py +++ b/app/src/admin.py @@ -19,7 +19,7 @@ class BookAdmin(admin.ModelAdmin): ('pub_date', 'status'), ('price', 'price_sale'), 'meta_description', - ('slug', 'template_name'), + ('slug', 'template_name', 'pages'), ), 'classes': ( 'show', diff --git a/app/src/models.py b/app/src/models.py index 1686301..10df6b2 100644 --- a/app/src/models.py +++ b/app/src/models.py @@ -100,6 +100,7 @@ class Book(models.Model): price = models.FloatField() price_sale = models.FloatField() meta_description = models.CharField(max_length=256, null=True, blank=True) + pages = models.DecimalField(max_digits=3, decimal_places=0, null=True, blank=True) DEFAULT = 'details/src_book.html' BOOK2 = 'details/src_book_2.html' TEMPLATES = ( |