feat!: add status to adoption notices, reset migrations because why not

This commit is contained in:
2024-05-31 16:25:50 +02:00
parent 71e69356b8
commit 7210847710
15 changed files with 362 additions and 582 deletions

View File

@@ -35,7 +35,7 @@ class Command(BaseCommand):
# Check if there already is and AdoptionNotice named Vermittung1TestSalt9227. If it is, the database
# is already populated and no data will be added again
try:
AdoptionNotice.objects.get(name="Vermittung1TestSalt9227")
AdoptionNotice.objects.get(name="Vermittlung1TestSalt9227")
print("Database already populated. No additional data will be created")
return
except AdoptionNotice.DoesNotExist:
@@ -48,7 +48,7 @@ class Command(BaseCommand):
'fellchensammlung.rescue_org'
)
adoption1 = baker.make(AdoptionNotice, name="Vermittung1TestSalt9227", organization=rescue1)
adoption1 = baker.make(AdoptionNotice, name="Vermittlung1TestSalt9227", organization=rescue1)
adoption2 = baker.make(AdoptionNotice, name="Vermittung2", organization=rescue2)