option to make publish date editable
[django-migdal.git] / migdal / helpers.py
1 # -*- coding: utf-8 -*-
2 # This file is part of PrawoKultury, licensed under GNU Affero GPLv3 or later.
3 # Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information.
4 #
5
6
7 class EntryType(object):
8     def __init__(self, db, slug, commentable=False, on_main=False, promotable=False, categorized=False):
9         self.db = db
10         self.slug = slug
11         self.commentable = commentable
12         self.on_main = on_main
13         self.promotable = promotable
14         self.categorized = categorized
15
16     def __unicode__(self):
17         return unicode(self.slug)