Commits

Anonymous committed 3510d36

Fixed field types
Removed markup choice

Comments (0)

Files changed (1)

gnocchi_forum/models.py

 from django.db import models
 from datetime import datetime
-from gnocchi_forum import settings
 
 THREAD_STATE_CHOICES = (
     ('open', 'Open to General postings.'),
     ('frozen', 'No new posts allowed.'),
 )
 
-MARKUP_CHOCIES = (
-    ('markdown', 'Markdown',),
-)
-
 class Category(models.Model):
     '''Top level grouping of posts'''
     name = models.CharField(max_length=256)
     title = models.CharField(max_lengtu=256)
     slug = models.SlugField(unique=True)
     category = models.ForeignKey(Category)
-    description = models.TextArea(blank=True)
+    description = models.TextField(blank=True)
 
     class Meta:
         unique_together = (
     posted_by = models.ForeignKey('auth.User')
     created = models.DateTimeField(default=datetime.now)
     reply_to = models.ForeignKey('self', blank=True, null=True)
-    content = models.TextArea(blank=True)
-    markup = models.CharField(max_length=16, default=settings.DEFAULT_MARKUP,
-        choices=MARKUP_CHOICES)
-
+    content = models.TextField(blank=True)
     # XXX Moderation
 
     @models.permalink