diff options
Diffstat (limited to 'weblog/models.py')
-rwxr-xr-x[-rw-r--r--] | weblog/models.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/weblog/models.py b/weblog/models.py index 63f3f2c..96d9032 100644..100755 --- a/weblog/models.py +++ b/weblog/models.py @@ -44,6 +44,8 @@ class BlogPost(models.Model): original_language = models.CharField(max_length=5, verbose_name=_('Original language (ISO)'), blank=True) slug = models.SlugField(max_length=100, verbose_name=_('Slug (URL)'), db_index=True, unique=True) categories = models.ManyToManyField(Category, verbose_name=pgettext_lazy('Post categories', 'Categories'), blank=True) + pinned = models.BooleanField(verbose_name=_('Pin blog post'), default=False) + pin_priority = models.IntegerField(verbose_name=_('Pinned post priority (if pinned)'), default=0) published = models.BooleanField(verbose_name=pgettext_lazy('Make post viewable', 'Published')) publish_date = models.DateTimeField(verbose_name=_('Publish date')) |