X-Git-Url: https://git.mdrn.pl/prawokultury.git/blobdiff_plain/40c6dee13a7eed074e98867924a7e56e771689f6..5af5cc14f6b2ecddcad714053e048e39d52ca02d:/migdal/helpers.py?ds=sidebyside diff --git a/migdal/helpers.py b/migdal/helpers.py index 8a6513d..4e1a16e 100644 --- a/migdal/helpers.py +++ b/migdal/helpers.py @@ -11,8 +11,16 @@ from django.core.urlresolvers import LocaleRegexURLResolver from django.utils.translation import get_language, string_concat -class EntryType(namedtuple('EntryType', 'db slug commentable on_main')): - __slots__ = () +class EntryType(object): + def __init__(self, db, slug, commentable=False, on_main=False, + promotable=False, categorized=False): + self.db = db + self.slug = slug + self.commentable = commentable + self.on_main = on_main + self.promotable = promotable + self.categorized = categorized + def __unicode__(self): return unicode(self.slug)