feat(test): Add data to populate basic db
This commit is contained in:
26
src/fellchensammlung/baker_recipes.py
Normal file
26
src/fellchensammlung/baker_recipes.py
Normal file
@@ -0,0 +1,26 @@
|
||||
from django.contrib.auth.models import User
|
||||
from model_bakery.recipe import Recipe, seq
|
||||
from fellchensammlung.models import *
|
||||
|
||||
location = Recipe(
|
||||
Location,
|
||||
name=seq('Ort_'),
|
||||
description=seq('Detaillierte Beschreibung_'),
|
||||
postcode=seq("7322"),
|
||||
)
|
||||
|
||||
rescue_org = Recipe(
|
||||
RescueOrganization,
|
||||
name=seq('Rattennothilfe_'),
|
||||
location=location.make()
|
||||
)
|
||||
|
||||
rat = Recipe(
|
||||
Animal,
|
||||
name=seq('Ratte_'),
|
||||
)
|
||||
|
||||
cat = Recipe(
|
||||
Animal,
|
||||
name=seq('Katze_'),
|
||||
)
|
Reference in New Issue
Block a user