Update dummy presentations script

Set title and abstract on talk proposals when creating them.
This commit is contained in:
Joel Addison 2019-10-30 09:17:40 +10:00
parent f52477c9b4
commit a5de57b63d

View file

@ -9,9 +9,6 @@ from pinaxcon.proposals.models import TalkProposal
class Command(BaseCommand):
known_headers = ["date", "start time", "end time", "kind", "rooms"]
SLOTS = 'slots'
TALKS = 'talks'
help = "Creates a bunch of dummy presentations to play around with."
@ -26,7 +23,9 @@ class Command(BaseCommand):
for i in range(1000, 1020):
prop, _created = TalkProposal.objects.get_or_create(
pk=i, kind=talk_kind, speaker=speaker, target_audience=target_audience)
pk=i, kind=talk_kind, speaker=speaker, target_audience=target_audience,
title=f"dummy title {i}", abstract=f"dummy abstract {i}")
pres, _created = Presentation.objects.get_or_create(
proposal_base=prop, section=section, speaker=speaker,
title=f"dummy title {i}", abstract=f"dummy abstract {i}")