diff --git a/civicfix/core/__pycache__/forms.cpython-313.pyc b/civicfix/core/__pycache__/forms.cpython-313.pyc
index f9aea4a..c1b4e14 100644
Binary files a/civicfix/core/__pycache__/forms.cpython-313.pyc and b/civicfix/core/__pycache__/forms.cpython-313.pyc differ
diff --git a/civicfix/core/__pycache__/models.cpython-313.pyc b/civicfix/core/__pycache__/models.cpython-313.pyc
index 64d04bc..df7f7df 100644
Binary files a/civicfix/core/__pycache__/models.cpython-313.pyc and b/civicfix/core/__pycache__/models.cpython-313.pyc differ
diff --git a/civicfix/core/__pycache__/urls.cpython-313.pyc b/civicfix/core/__pycache__/urls.cpython-313.pyc
index 253942c..e85e993 100644
Binary files a/civicfix/core/__pycache__/urls.cpython-313.pyc and b/civicfix/core/__pycache__/urls.cpython-313.pyc differ
diff --git a/civicfix/core/__pycache__/views.cpython-313.pyc b/civicfix/core/__pycache__/views.cpython-313.pyc
index 5c2470b..5e3d968 100644
Binary files a/civicfix/core/__pycache__/views.cpython-313.pyc and b/civicfix/core/__pycache__/views.cpython-313.pyc differ
diff --git a/civicfix/core/migrations/0003_comment.py b/civicfix/core/migrations/0003_comment.py
new file mode 100644
index 0000000..bae5ef4
--- /dev/null
+++ b/civicfix/core/migrations/0003_comment.py
@@ -0,0 +1,29 @@
+# Generated by Django 5.2.5 on 2025-08-22 00:55
+
+import django.db.models.deletion
+from django.conf import settings
+from django.db import migrations, models
+
+
+class Migration(migrations.Migration):
+
+ dependencies = [
+ ('core', '0002_vote'),
+ ]
+
+ operations = [
+ migrations.CreateModel(
+ name='Comment',
+ fields=[
+ ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
+ ('content', models.TextField()),
+ ('created_at', models.DateTimeField(auto_now_add=True)),
+ ('issue', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='comments', to='core.issue')),
+ ('parent', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='replies', to='core.comment')),
+ ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='comments', to=settings.AUTH_USER_MODEL)),
+ ],
+ options={
+ 'ordering': ['created_at'],
+ },
+ ),
+ ]
diff --git a/civicfix/core/migrations/0004_department_alter_comment_user.py b/civicfix/core/migrations/0004_department_alter_comment_user.py
new file mode 100644
index 0000000..1d8bf39
--- /dev/null
+++ b/civicfix/core/migrations/0004_department_alter_comment_user.py
@@ -0,0 +1,32 @@
+# Generated by Django 5.2.5 on 2025-08-25 06:21
+
+import django.db.models.deletion
+from django.conf import settings
+from django.db import migrations, models
+
+
+class Migration(migrations.Migration):
+
+ dependencies = [
+ ('core', '0003_comment'),
+ ]
+
+ operations = [
+ migrations.CreateModel(
+ name='Department',
+ fields=[
+ ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
+ ('name', models.CharField(max_length=100, unique=True)),
+ ('description', models.TextField(blank=True, null=True)),
+ ('created_at', models.DateTimeField(auto_now_add=True)),
+ ],
+ options={
+ 'ordering': ['name'],
+ },
+ ),
+ migrations.AlterField(
+ model_name='comment',
+ name='user',
+ field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL),
+ ),
+ ]
diff --git a/civicfix/core/migrations/0005_department_users.py b/civicfix/core/migrations/0005_department_users.py
new file mode 100644
index 0000000..e0c4aac
--- /dev/null
+++ b/civicfix/core/migrations/0005_department_users.py
@@ -0,0 +1,19 @@
+# Generated by Django 5.2.5 on 2025-08-25 06:43
+
+from django.conf import settings
+from django.db import migrations, models
+
+
+class Migration(migrations.Migration):
+
+ dependencies = [
+ ('core', '0004_department_alter_comment_user'),
+ ]
+
+ operations = [
+ migrations.AddField(
+ model_name='department',
+ name='users',
+ field=models.ManyToManyField(blank=True, related_name='departments', to=settings.AUTH_USER_MODEL),
+ ),
+ ]
diff --git a/civicfix/core/migrations/__pycache__/0003_comment.cpython-313.pyc b/civicfix/core/migrations/__pycache__/0003_comment.cpython-313.pyc
new file mode 100644
index 0000000..9b8916c
Binary files /dev/null and b/civicfix/core/migrations/__pycache__/0003_comment.cpython-313.pyc differ
diff --git a/civicfix/core/migrations/__pycache__/0004_department_alter_comment_user.cpython-313.pyc b/civicfix/core/migrations/__pycache__/0004_department_alter_comment_user.cpython-313.pyc
new file mode 100644
index 0000000..103132d
Binary files /dev/null and b/civicfix/core/migrations/__pycache__/0004_department_alter_comment_user.cpython-313.pyc differ
diff --git a/civicfix/core/migrations/__pycache__/0005_department_users.cpython-313.pyc b/civicfix/core/migrations/__pycache__/0005_department_users.cpython-313.pyc
new file mode 100644
index 0000000..a55c662
Binary files /dev/null and b/civicfix/core/migrations/__pycache__/0005_department_users.cpython-313.pyc differ
diff --git a/civicfix/core/models.py b/civicfix/core/models.py
index 6a9f30e..ecaa146 100644
--- a/civicfix/core/models.py
+++ b/civicfix/core/models.py
@@ -92,3 +92,21 @@ class Comment(models.Model):
@property
def is_reply(self):
return self.parent is not None
+
+class Department(models.Model):
+ name = models.CharField(max_length=100, unique=True)
+ description = models.TextField(blank=True, null=True)
+ created_at = models.DateTimeField(auto_now_add=True)
+
+ users = models.ManyToManyField(
+ User,
+ related_name="departments",
+ blank=True,
+ limit_choices_to={'is_staff': True}
+ )
+
+ class Meta:
+ ordering = ["name"]
+
+ def __str__(self):
+ return self.name.name
diff --git a/civicfix/core/templates/core/base.html b/civicfix/core/templates/core/base.html
index 1da27a1..0173209 100644
--- a/civicfix/core/templates/core/base.html
+++ b/civicfix/core/templates/core/base.html
@@ -1,178 +1,168 @@
-
-
-
-
- Civixfix - {% block title %}Community Issue Reporting Platform{% endblock %}
-
-
-
-
-
-
-
-
-
-
- {% block extra_css %}{% endblock %}
-
-
-
-