From a5de57b63d98562706dde571938ad0b241b18199 Mon Sep 17 00:00:00 2001 From: Joel Addison Date: Wed, 30 Oct 2019 09:17:40 +1000 Subject: [PATCH] Update dummy presentations script Set title and abstract on talk proposals when creating them. --- .../management/commands/dummy_presentations.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/pinaxcon/registrasion/management/commands/dummy_presentations.py b/pinaxcon/registrasion/management/commands/dummy_presentations.py index d34a2ba3..a38b1bc8 100644 --- a/pinaxcon/registrasion/management/commands/dummy_presentations.py +++ b/pinaxcon/registrasion/management/commands/dummy_presentations.py @@ -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}")