making migdal more universal
[prawokultury.git] / migdal / helpers.py
index 8a6513d..4e1a16e 100644 (file)
@@ -11,8 +11,16 @@ from django.core.urlresolvers import LocaleRegexURLResolver
 from django.utils.translation import get_language, string_concat
 
 
 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)
 
     def __unicode__(self):
         return unicode(self.slug)