From 549fd33ccce3cf38d357db83cb8843cb0f14134d Mon Sep 17 00:00:00 2001 From: moanos Date: Mon, 18 Mar 2024 14:21:22 +0100 Subject: [PATCH] feat(test): Add second adoption notice --- src/fellchensammlung/management/commands/populate_db.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/fellchensammlung/management/commands/populate_db.py b/src/fellchensammlung/management/commands/populate_db.py index 7ff7b0c..1ad28b7 100644 --- a/src/fellchensammlung/management/commands/populate_db.py +++ b/src/fellchensammlung/management/commands/populate_db.py @@ -17,6 +17,9 @@ class Command(BaseCommand): rat2 = baker.make_recipe( 'fellchensammlung.rat' ) + cat = baker.make_recipe( + 'fellchensammlung.cat' + ) rescue1 = baker.make_recipe( 'fellchensammlung.rescue_org' ) @@ -26,6 +29,8 @@ class Command(BaseCommand): baker.make(AdoptionNotice, name="Vermittung1", animals=[rat1, rat2], organization=rescue1) + baker.make(AdoptionNotice, name="Vermittung2", animals=[cat], organization=rescue2) + User.objects.create_user('test', password='foobar') User.objects.create_superuser(username="admin", password="admin")