-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
initial work to support suspend and resume features (#166)
* initial work to support suspend and resume features * fixing typos * adding enforce_state_controls support to authapi * adding missing ENFORCE_STATE_CONTROLS in test_settings * invalid status transition * allowing setting data in error output * fixing time_limit * fixing process_tallies * stopping tally_status if stopping auth_event * do not allow to pending from suspended, first election needs to stop * fixing status name * fixing status ref * adding some missing support for AuthEvent.RESUMED as it was AuthEvent.STARTED * allowing to suspend from resumed
- Loading branch information
Showing
9 changed files
with
213 additions
and
49 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# Generated by Edulix on 2021-12-30 11:00 | ||
|
||
from django.db import migrations, models | ||
|
||
class Migration(migrations.Migration): | ||
dependencies = [ | ||
('api', '0047_userdata_use_generated_auth_code'), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name='authevent', | ||
name='status', | ||
field=models.CharField( | ||
default='notstarted', | ||
max_length=15, | ||
choices=[ | ||
('notstarted', 'not-started'), | ||
('started', 'started'), | ||
('stopped', 'stopped'), | ||
('resumed', 'resumed'), | ||
('suspended', 'suspended') | ||
] | ||
), | ||
preserve_default=True | ||
) | ||
] |
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.