-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* refactored exception for order init error (#712) * refactored exception for order init error * added error when trying to update a paid event to a free event * Refactor(paid event)/rename exception (#717) * refactored exception for order init error * added error when trying to update a paid event to a free event * changed name of exception * Trigger Build * notification for waiting list and when coming from waiting list (#725) * use env variable for celery broker url (#726) * chore: use env variable for celery broker url * chore: set default env varibale if not configured * Give HS user permissions (#727) * Give HS user permissions * Fix * Update CHANGELOG.md * Feat(event)/waitlist (#724) * Fix(registration)/waitlist limit (#729) * users from wait list get bumped up if event limit is increased, and users from queue get bumped down if the limit is decreased. Priority is respected * format * altered test with bigger dicrease, and to test if priority is respected * added endpotint for manually adding members to an event (#730) * added endpotint for manually adding members to an event * format * made migrations * test for registration on wait list if event is full * Feat(qr)/qr generator (#719) * added model for QR code, viewset and serializer * finished create and destroy methods, and mades tests for these * altered create viewset to take user from request * fixed tests * changed status code for deletion of qr code to 200 since frontend dosent accept 204 status code.... * format * removed earlier unused method * format * Trigger Build * changed exception to take all errors with making a blob * format * added azure key to settings file * format * changed name of exception for blbo not found * altered ci.yaml file to add azure connecntion string as env * fix ci file * changed model to take content, and serializer not upload image to azure * format * added users and groups to fixture (#731) * made it possible to add members before and after registration open time (#733) * made it possible to add members before and after registration open time * can add for paid event * format * format * Update CHANGELOG.md * Activity (#736) * first version * changed ordering for activities * filled out categiory enum * fixed test * fixed test again * Update CHANGELOG.md --------- Co-authored-by: Martin Clementz <[email protected]> Co-authored-by: Thomas H. Svendal <[email protected]> Co-authored-by: Anders <[email protected]>
- Loading branch information
1 parent
ca29e1a
commit bbac43f
Showing
7 changed files
with
312 additions
and
43 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,20 @@ | ||
from django.db import models | ||
|
||
from enumchoicefield import ChoiceEnum | ||
|
||
|
||
class UserClass(models.IntegerChoices): | ||
FIRST = 1 | ||
SECOND = 2 | ||
THIRD = 3 | ||
FORTH = 4 | ||
FIFTH = 5 | ||
|
||
|
||
class CategoryEnum(ChoiceEnum): | ||
ACTIVITY = "Aktivitet" | ||
SOSIALT = "Sosialt" | ||
BEDPRES = "Bedpres" | ||
KURS = "Kurs" | ||
ANNET = "Annet" | ||
FADDERUKA = "Fadderuka" |
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
Large diffs are not rendered by default.
Oops, something went wrong.
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