ExerciseTree primary key to tree_id

This commit is contained in:
Bossanyi Tibor 2020-08-02 17:09:41 +02:00
parent 71e0b8f155
commit 78761b816a

View File

@ -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')