Changed related_name in foreign key created_by (conflict with django-media-tree)
This commit is contained in:
parent
e894b14a96
commit
d1b1842965
1 changed files with 1 additions and 1 deletions
|
@ -42,7 +42,7 @@ class Item(models.Model):
|
||||||
due_date = models.DateField(blank=True, null=True, )
|
due_date = models.DateField(blank=True, null=True, )
|
||||||
completed = models.BooleanField()
|
completed = models.BooleanField()
|
||||||
completed_date = models.DateField(blank=True, null=True)
|
completed_date = models.DateField(blank=True, null=True)
|
||||||
created_by = models.ForeignKey(User, related_name='created_by')
|
created_by = models.ForeignKey(User, related_name='todo_created_by')
|
||||||
assigned_to = models.ForeignKey(User, related_name='todo_assigned_to')
|
assigned_to = models.ForeignKey(User, related_name='todo_assigned_to')
|
||||||
note = models.TextField(blank=True, null=True)
|
note = models.TextField(blank=True, null=True)
|
||||||
priority = models.PositiveIntegerField(max_length=3)
|
priority = models.PositiveIntegerField(max_length=3)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue