feat: Add rules

This commit is contained in:
2024-03-20 11:02:24 +01:00
parent 1bcdbdbbf5
commit 079b2073a1
8 changed files with 61 additions and 8 deletions

View File

@@ -29,6 +29,11 @@ class Command(BaseCommand):
rat2 = baker.make(Animal, name="Rat2", adoption_notice=adoption1, species=rat)
cat1 = baker.make(Animal, name="Cat1", adoption_notice=adoption2, species=cat)
rule1 = baker.make(Rule, title="Be excellent ot each other", rule_text="This is **markdown**")
rule2 = baker.make(Rule,
title="Keep al least the minimum number of animals for species",
rule_text="This is not markdown")
User.objects.create_user('test', password='foobar')
User.objects.create_superuser(username="admin", password="admin")