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)