-
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.
feat(backend): add export Skyroom credentials action (#45)
* feat: extract emails for every w/p * add json files to gitignore * feat: xlsx * feat(backend): make exporter an action & change output format to .csv --------- Co-authored-by: Adibov <[email protected]>
- Loading branch information
Showing
7 changed files
with
105 additions
and
440 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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
data | ||
media | ||
static | ||
static | ||
*.json |
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
26 changes: 26 additions & 0 deletions
26
backend/backend_api/migrations/0057_make_passwords_random.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,26 @@ | ||
# Generated by Django 4.2.4 on 2023-12-05 21:26 | ||
|
||
from django.db import migrations | ||
|
||
from utils.random import create_random_string | ||
|
||
|
||
def make_passwords_random(apps, schema_editor): | ||
WorkshopRegistration = apps.get_model('backend_api', 'WorkshopRegistration') | ||
PresentationParticipation = apps.get_model('backend_api', 'PresentationParticipation') | ||
for registration in WorkshopRegistration.objects.all(): | ||
registration.password = create_random_string(16) | ||
registration.save() | ||
for participation in PresentationParticipation.objects.all(): | ||
participation.password = create_random_string(16) | ||
participation.save() | ||
|
||
|
||
class Migration(migrations.Migration): | ||
dependencies = [ | ||
('backend_api', '0056_presentationparticipation_password_and_more'), | ||
] | ||
|
||
operations = [ | ||
migrations.RunPython(make_passwords_random) | ||
] |
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
Binary file not shown.
Oops, something went wrong.