-
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): Switch Code to UUID & Add QR_Code.png generation to sa…
…ve function for codes
- Loading branch information
1 parent
8b52d51
commit d87fb5f
Showing
7 changed files
with
116 additions
and
3 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Generated by Django 3.2.5 on 2021-07-22 19:42 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('trails', '0008_player_action_points'), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name='code', | ||
name='image', | ||
field=models.ImageField(blank=True, upload_to='media/'), | ||
), | ||
] |
24 changes: 24 additions & 0 deletions
24
backend/dpt_app/trails/migrations/0010_auto_20210723_0843.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,24 @@ | ||
# Generated by Django 3.2.5 on 2021-07-23 08:43 | ||
|
||
from django.db import migrations, models | ||
import uuid | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('trails', '0009_code_image'), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name='code', | ||
name='uuid', | ||
field=models.UUIDField(default=uuid.uuid4, editable=False, unique=True), | ||
), | ||
migrations.AlterField( | ||
model_name='code', | ||
name='image', | ||
field=models.ImageField(blank=True, editable=False, upload_to='media/'), | ||
), | ||
] |
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