diff options
Diffstat (limited to 'app')
-rw-r--r-- | app/TODO | 8 | ||||
-rw-r--r-- | app/src/admin.py | 2 | ||||
-rw-r--r-- | app/src/models.py | 1 |
3 files changed, 9 insertions, 2 deletions
@@ -11,6 +11,11 @@ https://css-tricks.com/serviceworker-for-offline/ https://adactio.com/journal/9814 https://adactio.com/journal/9775 http://brucelawson.github.io/manifest/ +https://serviceworker-cookbook.herokuapp.com/ + +fix amp support by anitizing html: + +https://github.com/duner/django-bluebox/blob/master/bluebox/converters/sanitizer.py --- @@ -54,7 +59,8 @@ resume clean up design of book detail add paypal app and generate button -handle callbacks from paypal to deliver the book and link to files +handle callbacks from paypal to deliver the book and link to files: +https://developer.paypal.com/webapps/developer/docs/classic/ipn/integration-guide/IPNandPDTVariables/ redirect lhp: home, book and rss 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 = ( |