Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- сlass Person(models.Model):
- name = models.CharField(max_lenth=64)
- group = models.CharField(max_lenth=64)
- [{'name': Person_1, 'group': Group_1}, {'name': Person_2, 'group': Group_1}, {'name': Person_3, 'group': Group_2}, {'name': Person_4, 'group': Group_2}]
- Group_1:
- -Person_1
- -Person_2
- Group_2:
- -Person_3
- -Person_4
Add Comment
Please, Sign In to add comment