Only set creator when creating task (#80)
* Only set creator when creating task * allow blank form input, use clean func to keep old val * remove unneeded created_date assignment * add test
This commit is contained in:
parent
7f576c9bc8
commit
2d40ef471e
7 changed files with 88 additions and 2 deletions
|
|
@ -78,6 +78,7 @@ class Task(models.Model):
|
|||
created_by = models.ForeignKey(
|
||||
settings.AUTH_USER_MODEL,
|
||||
null=True,
|
||||
blank=True,
|
||||
related_name="todo_created_by",
|
||||
on_delete=models.CASCADE,
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue