migrations and data fixture
This commit is contained in:
parent
e38aacafbe
commit
a7bd2dcb98
4 changed files with 20 additions and 53 deletions
|
@ -1,4 +1,4 @@
|
|||
# Generated by Django 4.2.2 on 2023-07-03 18:48
|
||||
# Generated by Django 4.2.2 on 2023-07-04 16:19
|
||||
|
||||
from django.conf import settings
|
||||
from django.db import migrations, models
|
||||
|
@ -13,7 +13,7 @@ class Migration(migrations.Migration):
|
|||
dependencies = [
|
||||
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
|
||||
("rescuer", "0001_initial"),
|
||||
("aviary", "0002_alter_aviary_options_alter_aviary_condition_and_more"),
|
||||
("aviary", "0001_initial"),
|
||||
]
|
||||
|
||||
operations = [
|
||||
|
@ -39,15 +39,7 @@ class Migration(migrations.Migration):
|
|||
migrations.CreateModel(
|
||||
name="BirdStatus",
|
||||
fields=[
|
||||
(
|
||||
"id",
|
||||
models.UUIDField(
|
||||
default=uuid.uuid4,
|
||||
editable=False,
|
||||
primary_key=True,
|
||||
serialize=False,
|
||||
),
|
||||
),
|
||||
("id", models.BigAutoField(primary_key=True, serialize=False)),
|
||||
("description", models.CharField(max_length=256, unique=True)),
|
||||
],
|
||||
options={
|
||||
|
@ -70,7 +62,7 @@ class Migration(migrations.Migration):
|
|||
(
|
||||
"bird_identifier",
|
||||
models.CharField(
|
||||
default=uuid.uuid1, max_length=256, verbose_name="Kennung"
|
||||
default="David Leong", max_length=256, verbose_name="Kennung"
|
||||
),
|
||||
),
|
||||
("date_found", models.DateField(verbose_name="Datum des Fundes")),
|
||||
|
@ -89,7 +81,7 @@ class Migration(migrations.Migration):
|
|||
("diagnostic_finding", models.CharField(max_length=256)),
|
||||
(
|
||||
"cost_sum",
|
||||
models.DecimalField(decimal_places=2, default=0.0, max_digits=4),
|
||||
models.DecimalField(decimal_places=2, default=0.0, max_digits=5),
|
||||
),
|
||||
(
|
||||
"aviary",
|
||||
|
@ -120,9 +112,7 @@ class Migration(migrations.Migration):
|
|||
(
|
||||
"status",
|
||||
models.ForeignKey(
|
||||
blank=True,
|
||||
null=True,
|
||||
on_delete=django.db.models.deletion.SET_NULL,
|
||||
on_delete=django.db.models.deletion.CASCADE,
|
||||
to="bird.birdstatus",
|
||||
),
|
||||
),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue