MODELS CHANGE: Study / Category model to include more fields
This commit is contained in:
parent
eac95ef065
commit
43d02137c0
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue
Block a user