summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app/gtd/migrations/0012_alter_gtdnote_body_markdown_and_more.py23
-rw-r--r--app/gtd/models.py2
2 files changed, 24 insertions, 1 deletions
diff --git a/app/gtd/migrations/0012_alter_gtdnote_body_markdown_and_more.py b/app/gtd/migrations/0012_alter_gtdnote_body_markdown_and_more.py
new file mode 100644
index 0000000..75da577
--- /dev/null
+++ b/app/gtd/migrations/0012_alter_gtdnote_body_markdown_and_more.py
@@ -0,0 +1,23 @@
+# Generated by Django 4.2.7 on 2023-11-16 16:05
+
+from django.db import migrations, models
+
+
+class Migration(migrations.Migration):
+
+ dependencies = [
+ ('gtd', '0011_alter_gtdproject_project_type_and_more'),
+ ]
+
+ operations = [
+ migrations.AlterField(
+ model_name='gtdnote',
+ name='body_markdown',
+ field=models.TextField(blank=True, null=True),
+ ),
+ migrations.AlterField(
+ model_name='gtdproject',
+ name='project_type',
+ field=models.IntegerField(choices=[(0, 'wired'), (1, 'lbh'), (2, 'personal'), (3, 'lxf')], default=2),
+ ),
+ ]
diff --git a/app/gtd/models.py b/app/gtd/models.py
index af6ca69..e74c33a 100644
--- a/app/gtd/models.py
+++ b/app/gtd/models.py
@@ -97,7 +97,7 @@ class NoteType(models.IntegerChoices):
class GTDNote(models.Model):
title = models.CharField(max_length=200)
- body_markdown = models.TextField()
+ body_markdown = models.TextField(null=True, blank=True)
body_html = models.TextField(blank=True)
date_completed = models.DateField(null=True, blank=True)
date_created = models.DateTimeField(auto_now=True)