-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[#4321] First attempt to limit the amount of submissions per form
- Loading branch information
Showing
15 changed files
with
286 additions
and
8 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
41 changes: 41 additions & 0 deletions
41
src/openforms/forms/migrations/0107_form_submission_counter_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,41 @@ | ||
# Generated by Django 4.2.16 on 2024-12-03 15:48 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
("forms", "0106_convert_price_logic_rules"), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name="form", | ||
name="submission_counter", | ||
field=models.PositiveIntegerField( | ||
default=0, | ||
help_text="Counter to track how many submissions have been completed for the specific form. This works in combination with the maximum allowed submissions per form.", | ||
verbose_name="submissions counter", | ||
), | ||
), | ||
migrations.AddField( | ||
model_name="form", | ||
name="submission_counter_reset", | ||
field=models.BooleanField( | ||
default=True, | ||
help_text="Whether the counter of the submissions should be reset or not.", | ||
verbose_name="submission counter reset", | ||
), | ||
), | ||
migrations.AddField( | ||
model_name="form", | ||
name="submission_maximum_allowed", | ||
field=models.PositiveIntegerField( | ||
blank=True, | ||
default=0, | ||
help_text="Maximum number of allowed submissions per form. Set this to zero (0) if no limit is needed.", | ||
verbose_name="maximum allowed submissions", | ||
), | ||
), | ||
] |
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
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
Oops, something went wrong.