Implemented tree view for selection of samples
This commit is contained in:
parent
7f099bfca4
commit
6d40700cf3
11 changed files with 99 additions and 45 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue