From 0dc391b432b8369d8ddab616ce74dabcfc6650a3 Mon Sep 17 00:00:00 2001 From: moanos Date: Fri, 31 May 2024 16:41:44 +0200 Subject: [PATCH] feat: Add proper location to adoption notices --- .../management/commands/populate_db.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/fellchensammlung/management/commands/populate_db.py b/src/fellchensammlung/management/commands/populate_db.py index db01611..1ddedad 100644 --- a/src/fellchensammlung/management/commands/populate_db.py +++ b/src/fellchensammlung/management/commands/populate_db.py @@ -48,9 +48,15 @@ class Command(BaseCommand): 'fellchensammlung.rescue_org' ) - adoption1 = baker.make(AdoptionNotice, name="Vermittlung1TestSalt9227", organization=rescue1) + adoption1 = baker.make(AdoptionNotice, + name="Vermittlung1TestSalt9227", + organization=rescue1, + location=baker.make_recipe("fellchensammlung.location")) - adoption2 = baker.make(AdoptionNotice, name="Vermittung2", organization=rescue2) + adoption2 = baker.make(AdoptionNotice, + name="Vermittung2", + organization=rescue2, + location=baker.make_recipe("fellchensammlung.location")) cat = baker.make(Species, name="Katze") rat = baker.make(Species, name="Farbratte")