Skip to content

Commit ff59a44

Browse files
committed
Add Tasks model and created CR operations in Tasks app
1 parent d1857d7 commit ff59a44

14 files changed

Lines changed: 88 additions & 1 deletion
63 Bytes
Binary file not shown.

task_manager/urls.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,5 @@
2020
urlpatterns = [
2121
path('admin/', admin.site.urls),
2222
path('accounts/', include('accounts.urls')),
23+
path('tasks/', include('tasks.urls'))
2324
]
655 Bytes
Binary file not shown.
691 Bytes
Binary file not shown.
805 Bytes
Binary file not shown.
1005 Bytes
Binary file not shown.

tasks/migrations/0001_initial.py

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Generated by Django 5.2.7 on 2025-10-27 14:37
2+
3+
from django.db import migrations, models
4+
5+
6+
class Migration(migrations.Migration):
7+
8+
initial = True
9+
10+
dependencies = [
11+
]
12+
13+
operations = [
14+
migrations.CreateModel(
15+
name='Tasks',
16+
fields=[
17+
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
18+
('task', models.CharField(max_length=100)),
19+
('description', models.TextField(blank=True, max_length=500)),
20+
('created_at', models.DateTimeField(auto_now_add=True)),
21+
('updated_at', models.DateTimeField(auto_now=True)),
22+
('category', models.CharField(blank=True, max_length=100)),
23+
],
24+
),
25+
]
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Generated by Django 5.2.7 on 2025-10-27 16:15
2+
3+
from django.db import migrations, models
4+
5+
6+
class Migration(migrations.Migration):
7+
8+
dependencies = [
9+
('tasks', '0001_initial'),
10+
]
11+
12+
operations = [
13+
migrations.AlterField(
14+
model_name='tasks',
15+
name='updated_at',
16+
field=models.DateTimeField(blank=True, null=True),
17+
),
18+
]
1.22 KB
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)