diff options
author | luxagraf <sng@luxagraf.net> | 2023-11-17 17:03:44 -0500 |
---|---|---|
committer | luxagraf <sng@luxagraf.net> | 2023-11-17 17:03:44 -0500 |
commit | 42a2df61ae4fb60f5182ecd39e5e4df844180f1a (patch) | |
tree | 76188ad2d86c106875e8de5369d4fd72bba6ec89 /app | |
parent | cb738fd973664b1458a6aa343be06cee57eb4c5e (diff) |
gtd: added url field to GTDNote
Diffstat (limited to 'app')
4 files changed, 69 insertions, 2 deletions
diff --git a/app/gtd/forms.py b/app/gtd/forms.py index a4727cf..2e1c576 100644 --- a/app/gtd/forms.py +++ b/app/gtd/forms.py @@ -7,13 +7,13 @@ from .models import GTDNote, GTDProject, WiredNote, WiredPost class GTDNoteCreateForm(ModelForm): class Meta: model = GTDNote - fields = ['title', 'body_markdown', 'project', 'note_type', 'reminder', 'status'] + fields = ['title', 'url', 'body_markdown', 'project', 'note_type', 'reminder', 'status'] class GTDNoteEditForm(ModelForm): class Meta: model = GTDNote - fields = ['title', 'body_markdown', 'project', 'note_type', 'reminder', 'status'] + fields = ['title', 'url', 'body_markdown', 'project', 'note_type', 'reminder', 'status'] class GTDProjectCreateForm(ModelForm): diff --git a/app/gtd/migrations/0018_alter_gtdnote_work_status_and_more.py b/app/gtd/migrations/0018_alter_gtdnote_work_status_and_more.py new file mode 100644 index 0000000..762d643 --- /dev/null +++ b/app/gtd/migrations/0018_alter_gtdnote_work_status_and_more.py @@ -0,0 +1,23 @@ +# Generated by Django 4.2.7 on 2023-11-17 16:33 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('gtd', '0017_alter_gtdnote_note_type_alter_gtdnote_status_and_more'), + ] + + operations = [ + migrations.AlterField( + model_name='gtdnote', + name='work_status', + field=models.SmallIntegerField(blank=True, choices=[(0, 'Call In'), (1, 'Asked For'), (2, 'Coming'), (3, 'Testing'), (4, 'Done'), (5, 'Live')], null=True), + ), + migrations.AlterField( + model_name='gtdproject', + name='project_type', + field=models.IntegerField(choices=[(0, 'wired'), (1, 'lbh'), (2, 'lxf'), (3, 'personal')], default=2), + ), + ] diff --git a/app/gtd/migrations/0019_alter_gtdnote_note_type.py b/app/gtd/migrations/0019_alter_gtdnote_note_type.py new file mode 100644 index 0000000..82fa8cb --- /dev/null +++ b/app/gtd/migrations/0019_alter_gtdnote_note_type.py @@ -0,0 +1,18 @@ +# Generated by Django 4.2.7 on 2023-11-17 16:34 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('gtd', '0018_alter_gtdnote_work_status_and_more'), + ] + + operations = [ + migrations.AlterField( + model_name='gtdnote', + name='note_type', + field=models.SmallIntegerField(choices=[(0, 'action'), (1, 'reminder'), (2, 'reference')], default=0), + ), + ] diff --git a/app/gtd/migrations/0020_remove_gtdnote_work_plan_remove_gtdnote_work_status_and_more.py b/app/gtd/migrations/0020_remove_gtdnote_work_plan_remove_gtdnote_work_status_and_more.py new file mode 100644 index 0000000..0fa4750 --- /dev/null +++ b/app/gtd/migrations/0020_remove_gtdnote_work_plan_remove_gtdnote_work_status_and_more.py @@ -0,0 +1,26 @@ +# Generated by Django 4.2.7 on 2023-11-17 16:51 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('gtd', '0019_alter_gtdnote_note_type'), + ] + + operations = [ + migrations.RemoveField( + model_name='gtdnote', + name='work_plan', + ), + migrations.RemoveField( + model_name='gtdnote', + name='work_status', + ), + migrations.AlterField( + model_name='gtdnote', + name='note_type', + field=models.SmallIntegerField(choices=[(0, 'Action'), (1, 'Reminder'), (2, 'Reference')], default=0), + ), + ] |