diff --git a/assets/pasted-20251123-151520-06b3bb4c.png b/assets/pasted-20251123-151520-06b3bb4c.png new file mode 100644 index 0000000..3823046 Binary files /dev/null and b/assets/pasted-20251123-151520-06b3bb4c.png differ diff --git a/core/__pycache__/forms.cpython-311.pyc b/core/__pycache__/forms.cpython-311.pyc index f8814a7..a98d759 100644 Binary files a/core/__pycache__/forms.cpython-311.pyc and b/core/__pycache__/forms.cpython-311.pyc differ diff --git a/core/__pycache__/models.cpython-311.pyc b/core/__pycache__/models.cpython-311.pyc index a1c59e5..d1d5cef 100644 Binary files a/core/__pycache__/models.cpython-311.pyc and b/core/__pycache__/models.cpython-311.pyc differ diff --git a/core/__pycache__/views.cpython-311.pyc b/core/__pycache__/views.cpython-311.pyc index c3c9e1e..da1d71b 100644 Binary files a/core/__pycache__/views.cpython-311.pyc and b/core/__pycache__/views.cpython-311.pyc differ diff --git a/core/forms.py b/core/forms.py index 01d237e..ef7cd2a 100644 --- a/core/forms.py +++ b/core/forms.py @@ -4,7 +4,7 @@ from .models import TodoItem class TodoItemForm(forms.ModelForm): class Meta: model = TodoItem - fields = ['title', 'description', 'tags', 'status'] + fields = ['title', 'description', 'tags', 'status', 'deadline'] widgets = { 'title': forms.TextInput(attrs={ 'class': 'form-control', @@ -21,5 +21,9 @@ class TodoItemForm(forms.ModelForm): }), 'status': forms.Select(attrs={ 'class': 'form-control' + }), + 'deadline': forms.DateInput(attrs={ + 'class': 'form-control', + 'type': 'date' }) } \ No newline at end of file diff --git a/core/migrations/0008_todoitem_deadline.py b/core/migrations/0008_todoitem_deadline.py new file mode 100644 index 0000000..559b2f3 --- /dev/null +++ b/core/migrations/0008_todoitem_deadline.py @@ -0,0 +1,18 @@ +# Generated by Django 5.2.7 on 2025-11-23 15:10 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('core', '0007_conversation_is_generating'), + ] + + operations = [ + migrations.AddField( + model_name='todoitem', + name='deadline', + field=models.DateField(blank=True, null=True), + ), + ] diff --git a/core/migrations/__pycache__/0008_todoitem_deadline.cpython-311.pyc b/core/migrations/__pycache__/0008_todoitem_deadline.cpython-311.pyc new file mode 100644 index 0000000..2fef7fa Binary files /dev/null and b/core/migrations/__pycache__/0008_todoitem_deadline.cpython-311.pyc differ diff --git a/core/models.py b/core/models.py index 51ac0a9..6c9ef49 100644 --- a/core/models.py +++ b/core/models.py @@ -18,6 +18,7 @@ class TodoItem(models.Model): title = models.CharField(max_length=200) description = models.TextField(blank=True, null=True) tags = models.CharField(max_length=255, blank=True, null=True) + deadline = models.DateField(blank=True, null=True) status = models.CharField(max_length=20, choices=STATUS_CHOICES, default='todo') created_at = models.DateTimeField(auto_now_add=True) updated_at = models.DateTimeField(auto_now=True) diff --git a/core/templates/core/index.html b/core/templates/core/index.html index 4dd0437..9c740e5 100644 --- a/core/templates/core/index.html +++ b/core/templates/core/index.html @@ -28,6 +28,10 @@ {{ form.tags.label_tag }} {{ form.tags }} +