From 78761b816a48812a1b8d291f6647dd58ecf34a5f Mon Sep 17 00:00:00 2001 From: Bossanyi Tibor Date: Sun, 2 Aug 2020 17:09:41 +0200 Subject: [PATCH] ExerciseTree primary key to tree_id --- aitrainer_backoffice/aitrainer_backoffice/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aitrainer_backoffice/aitrainer_backoffice/models.py b/aitrainer_backoffice/aitrainer_backoffice/models.py index b1afada..5d4ed37 100644 --- a/aitrainer_backoffice/aitrainer_backoffice/models.py +++ b/aitrainer_backoffice/aitrainer_backoffice/models.py @@ -3,7 +3,7 @@ from django.utils.translation import ugettext_lazy as _ class ExerciseTree(models.Model): - item_id = models.AutoField(primary_key=True) + tree_id = models.AutoField(primary_key=True) parent_id = models.IntegerField(help_text='This is the parent menu ID. 0 if it is on the top of the tree') name = models.CharField(max_length=100, help_text='The name should be in English here') image_url = models.ImageField(upload_to='images/', help_text='The menu image size is 1366x768')