-
Notifications
You must be signed in to change notification settings - Fork 391
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(environment/views): Add get-by-uuid action (#4875)
- Loading branch information
1 parent
95d4e6c
commit db8433b
Showing
5 changed files
with
92 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# Generated by Django 3.2.23 on 2024-11-27 08:46 | ||
|
||
from django.db import migrations, models | ||
import uuid | ||
|
||
from core.migration_helpers import AddDefaultUUIDs | ||
|
||
|
||
class Migration(migrations.Migration): | ||
dependencies = [ | ||
("environments", "0036_add_is_creating_field"), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name="environment", | ||
name="uuid", | ||
field=models.UUIDField(editable=False, null=True), | ||
), | ||
migrations.RunPython( | ||
AddDefaultUUIDs("environments", "environment"), | ||
reverse_code=migrations.RunPython.noop, | ||
), | ||
migrations.AlterField( | ||
model_name="environment", | ||
name="uuid", | ||
field=models.UUIDField(default=uuid.uuid4, editable=False, unique=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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -44,6 +44,7 @@ class Meta: | |
model = Environment | ||
fields = ( | ||
"id", | ||
"uuid", | ||
"name", | ||
"api_key", | ||
"description", | ||
|
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