Skip to content
Snippets Groups Projects
Commit 80ee091d authored by borzechof99's avatar borzechof99 :whale2:
Browse files

Update seed_db to include unfilled Criterion for Sport

parent b9c77897
No related branches found
No related tags found
No related merge requests found
......@@ -90,6 +90,8 @@ class Command(BaseCommand):
# Create ratings for all sports and criterions
for sport in Sport.objects.all():
for criterion in Criterion.objects.all():
if sport.name == "Ballett" and criterion.name == "Mannschaftssport":
continue
sport.rate(criterion, random.randint(1, 10))
# Create questions
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment