fix foreignkey and loadin

This commit is contained in:
Andros Fenollosa
2021-11-21 09:21:39 +01:00
parent 912cd4eea4
commit 528b623acd
8 changed files with 76 additions and 11 deletions

View File

@ -17,7 +17,7 @@ def run():
my_talk = Talk(
title=title,
category=Category.objects.order_by("?")[0],
author=Profile.objects.order_by("?")[0],
speaker=Profile.objects.order_by("?")[0],
is_draft=False,
content=fake.paragraph(nb_sentences=randint(20, 100)),
)