From 42a2df61ae4fb60f5182ecd39e5e4df844180f1a Mon Sep 17 00:00:00 2001 From: luxagraf Date: Fri, 17 Nov 2023 17:03:44 -0500 Subject: gtd: added url field to GTDNote --- app/gtd/forms.py | 4 ++-- .../0018_alter_gtdnote_work_status_and_more.py | 23 +++++++++++++++++++ app/gtd/migrations/0019_alter_gtdnote_note_type.py | 18 +++++++++++++++ ...ork_plan_remove_gtdnote_work_status_and_more.py | 26 ++++++++++++++++++++++ 4 files changed, 69 insertions(+), 2 deletions(-) create mode 100644 app/gtd/migrations/0018_alter_gtdnote_work_status_and_more.py create mode 100644 app/gtd/migrations/0019_alter_gtdnote_note_type.py create mode 100644 app/gtd/migrations/0020_remove_gtdnote_work_plan_remove_gtdnote_work_status_and_more.py (limited to 'app/gtd') 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), + ), + ] -- cgit v1.2.3-70-g09d2