diff options
author | luxagraf <sng@luxagraf.net> | 2016-02-08 10:44:16 -0500 |
---|---|---|
committer | luxagraf <sng@luxagraf.net> | 2016-02-08 10:44:16 -0500 |
commit | 34df0f81d9a4480eb33c77a22879218e35fa0b49 (patch) | |
tree | 9438101199265d82cdf8206a808e2d287b0fe277 /app/books/models.py | |
parent | e6a76cb591edcd794b6ba27c64dd5ed68601353d (diff) |
added an is_public field so I can keep some of the scifi and pulp out of
the public performance part of the site should I decided to do that.
Diffstat (limited to 'app/books/models.py')
-rw-r--r-- | app/books/models.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/books/models.py b/app/books/models.py index 64d9a3d..4359a3e 100644 --- a/app/books/models.py +++ b/app/books/models.py @@ -30,6 +30,7 @@ class Book(models.Model): ) rating = models.CharField(max_length=1, choices=RATINGS, null=True, blank=True) enable_comments = models.BooleanField(default=False) + is_public = models.BooleanField(default=True) image = models.FileField(upload_to="%s/%s" % (settings.IMAGES_ROOT, 'book-covers/'), null=True, blank=True) class Meta: |