minor update

This commit is contained in:
2025-08-22 05:24:39 +05:30
parent 48c1d710c0
commit 34e3cd9951
9 changed files with 29 additions and 2 deletions
+2 -1
View File
@@ -1 +1,2 @@
.env
.env
issue_photos/
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
+27
View File
@@ -0,0 +1,27 @@
# Generated by Django 5.2.5 on 2025-08-21 22:31
import django.db.models.deletion
from django.conf import settings
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('core', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='Vote',
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('created_at', models.DateTimeField(auto_now_add=True)),
('issue', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='votes', to='core.issue')),
('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
],
options={
'unique_together': {('user', 'issue')},
},
),
]
-1
View File
@@ -11,5 +11,4 @@ urlpatterns = [
path('report-issue/', views.report_issue, name='report_issue'),
path('issues/', views.view_all_issues, name='view_all_issues'),
path('vote/<int:issue_id>/', views.vote_issue, name='vote_issue'),
]