-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
polls: add option to allow unregistered users to participate
- Loading branch information
Showing
24 changed files
with
1,085 additions
and
211 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
59 changes: 59 additions & 0 deletions
59
adhocracy4/polls/migrations/0006_alter_answer_unique_together_answer_content_id_and_more.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
# Generated by Django 4.2.13 on 2024-10-29 08:25 | ||
|
||
from django.conf import settings | ||
from django.db import migrations, models | ||
import django.db.models.deletion | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
migrations.swappable_dependency(settings.AUTH_USER_MODEL), | ||
("a4polls", "0005_verbose_name_created_modified"), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterUniqueTogether( | ||
name="answer", | ||
unique_together=set(), | ||
), | ||
migrations.AddField( | ||
model_name="answer", | ||
name="content_id", | ||
field=models.UUIDField(blank=True, null=True), | ||
), | ||
migrations.AddField( | ||
model_name="poll", | ||
name="allow_unregistered_users", | ||
field=models.BooleanField(default=False), | ||
), | ||
migrations.AddField( | ||
model_name="vote", | ||
name="content_id", | ||
field=models.UUIDField(blank=True, null=True), | ||
), | ||
migrations.AlterField( | ||
model_name="answer", | ||
name="creator", | ||
field=models.ForeignKey( | ||
blank=True, | ||
null=True, | ||
on_delete=django.db.models.deletion.SET_NULL, | ||
to=settings.AUTH_USER_MODEL, | ||
), | ||
), | ||
migrations.AlterField( | ||
model_name="vote", | ||
name="creator", | ||
field=models.ForeignKey( | ||
blank=True, | ||
null=True, | ||
on_delete=django.db.models.deletion.SET_NULL, | ||
to=settings.AUTH_USER_MODEL, | ||
), | ||
), | ||
migrations.AlterUniqueTogether( | ||
name="answer", | ||
unique_together={("question", "creator", "content_id")}, | ||
), | ||
] |
Oops, something went wrong.