minor update
This commit is contained in:
+2
-1
@@ -1 +1,2 @@
|
||||
.env
|
||||
.env
|
||||
issue_photos/
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -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')},
|
||||
},
|
||||
),
|
||||
]
|
||||
Binary file not shown.
@@ -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'),
|
||||
|
||||
]
|
||||
Reference in New Issue
Block a user