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
20
todo/migrations/0011_auto_20190724_1130.py
Normal file
20
todo/migrations/0011_auto_20190724_1130.py
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
# Generated by Django 2.1.8 on 2019-07-24 11:30
|
||||
|
||||
from django.conf import settings
|
||||
from django.db import migrations, models
|
||||
import django.db.models.deletion
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('todo', '0010_attachment'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='task',
|
||||
name='created_by',
|
||||
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='todo_created_by', to=settings.AUTH_USER_MODEL),
|
||||
),
|
||||
]
|
||||
Loading…
Add table
Add a link
Reference in a new issue