forked from pretalx/pretalx-public-voting
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for limiting to certain session types
This is similar to limiting to by tracks. Internally in the code it's not called "session", but "submission" type, that naming is preserved throughout the code. The name "session" is used for using facing parts like help messages. Closes pretalx#26.
- Loading branch information
Showing
4 changed files
with
35 additions
and
0 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
18 changes: 18 additions & 0 deletions
18
pretalx_public_voting/migrations/0007_publicvotingsettings_limit_submission_types.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,18 @@ | ||
# Generated by Django 4.2.5 on 2023-09-30 17:09 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
dependencies = [ | ||
("submission", "0073_track_position"), | ||
("pretalx_public_voting", "0006_publicvotingsettings_limit_tracks"), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name="publicvotingsettings", | ||
name="limit_submission_types", | ||
field=models.ManyToManyField(to="submission.submissiontype"), | ||
), | ||
] |
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