From 43d02137c0e26242f6d814506d4e3a5870405b77 Mon Sep 17 00:00:00 2001 From: Sanj Date: Sat, 4 Aug 2012 01:14:16 +0530 Subject: [PATCH] MODELS CHANGE: Study / Category model to include more fields --- edgware/files/models.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/edgware/files/models.py b/edgware/files/models.py index fada7cd..fe9ecb7 100755 --- a/edgware/files/models.py +++ b/edgware/files/models.py @@ -232,7 +232,8 @@ class File(models.Model): class Category(models.Model): name = models.CharField(max_length=255) 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) def __unicode__(self):