Update dummy presentations script
Set title and abstract on talk proposals when creating them.
This commit is contained in:
parent
f52477c9b4
commit
a5de57b63d
1 changed files with 3 additions and 4 deletions
|
@ -9,9 +9,6 @@ from pinaxcon.proposals.models import TalkProposal
|
||||||
|
|
||||||
|
|
||||||
class Command(BaseCommand):
|
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."
|
help = "Creates a bunch of dummy presentations to play around with."
|
||||||
|
|
||||||
|
@ -26,7 +23,9 @@ class Command(BaseCommand):
|
||||||
|
|
||||||
for i in range(1000, 1020):
|
for i in range(1000, 1020):
|
||||||
prop, _created = TalkProposal.objects.get_or_create(
|
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(
|
pres, _created = Presentation.objects.get_or_create(
|
||||||
proposal_base=prop, section=section, speaker=speaker,
|
proposal_base=prop, section=section, speaker=speaker,
|
||||||
title=f"dummy title {i}", abstract=f"dummy abstract {i}")
|
title=f"dummy title {i}", abstract=f"dummy abstract {i}")
|
||||||
|
|
Loading…
Reference in a new issue