MODELS CHANGE: Study / Category model to include more fields

This commit is contained in:
Sanj 2012-08-04 01:14:16 +05:30
parent eac95ef065
commit 43d02137c0

View File

@ -232,7 +232,8 @@ class File(models.Model):
class Category(models.Model): class Category(models.Model):
name = models.CharField(max_length=255) name = models.CharField(max_length=255)
groups = models.ManyToManyField(Group, null=True) groups = models.ManyToManyField(Group, null=True)
# description = models.TextField(blank=True) description = models.TextField(blank=True, null=True)
parent = models.ForeignKey('Category', related_name='children', blank=True, null=True)
# folder_name = models.CharField(max_length=512) # folder_name = models.CharField(max_length=512)
def __unicode__(self): def __unicode__(self):