Implemented tree view for selection of samples

This commit is contained in:
2013-09-11 23:44:40 +10:00
parent 7f099bfca4
commit 6d40700cf3
11 changed files with 99 additions and 45 deletions

View File

@@ -42,7 +42,8 @@ class Sample(CommonInfo):
description = models.CharField(max_length=2000, default='', blank=True,
null=True)
parent = models.ForeignKey(Category, blank=True, null=True,
on_delete=models.SET_NULL)
on_delete=models.SET_NULL,
related_name="samples")
class Question(models.Model):