generated from bisco/codex-bootstrap
fix: update theatre laboratory details
This commit is contained in:
@@ -106,46 +106,50 @@ class Command(BaseCommand):
|
||||
site = Site.objects.create(
|
||||
hostname="localhost",
|
||||
port=8000,
|
||||
site_name="Laboratorio Teatrale",
|
||||
site_name="Azione!Lab",
|
||||
root_page=homepage,
|
||||
is_default_site=True,
|
||||
)
|
||||
elif site.root_page_id != homepage.id:
|
||||
site.root_page = homepage
|
||||
site.site_name = "Laboratorio Teatrale"
|
||||
site.save(update_fields=["root_page", "site_name"])
|
||||
else:
|
||||
update_fields = []
|
||||
if site.root_page_id != homepage.id:
|
||||
site.root_page = homepage
|
||||
update_fields.append("root_page")
|
||||
if site.site_name != "Azione!Lab":
|
||||
site.site_name = "Azione!Lab"
|
||||
update_fields.append("site_name")
|
||||
if update_fields:
|
||||
site.save(update_fields=update_fields)
|
||||
|
||||
settings, _ = SiteSettings.objects.get_or_create(site=site)
|
||||
settings.laboratory_name = "Laboratorio Teatrale"
|
||||
settings.laboratory_name = "Azione!Lab"
|
||||
settings.short_claim = "Il teatro diventa presenza."
|
||||
settings.email = "ciao@laboratorioteatrale.it"
|
||||
settings.phone = "+39 333 123 4567"
|
||||
settings.whatsapp = "+39 333 123 4567"
|
||||
settings.instagram = "https://www.instagram.com/"
|
||||
settings.facebook = "https://www.facebook.com/"
|
||||
settings.address = "Via del Teatro 12, Roma"
|
||||
settings.address = "Via dell'Epomeo 9999, Napoli"
|
||||
settings.footer_text = "Uno spazio di ricerca, ascolto e presenza."
|
||||
settings.save()
|
||||
|
||||
TeacherProfile.objects.update_or_create(
|
||||
name="Andrea Rossi",
|
||||
defaults={
|
||||
"photo": teacher_image,
|
||||
"short_bio": (
|
||||
"Attore, regista e formatore. Accompagna gruppi e persone "
|
||||
"nella ricerca di una presenza scenica sincera."
|
||||
),
|
||||
"full_bio": (
|
||||
"<p>Da oltre quindici anni lavora tra formazione, creazione "
|
||||
"collettiva e spettacolo dal vivo.</p>"
|
||||
),
|
||||
"quote": "Il teatro non è fingere: è imparare a essere presenti.",
|
||||
},
|
||||
teacher = TeacherProfile.objects.order_by("id").first() or TeacherProfile()
|
||||
teacher.name = "Ernesto Estatico"
|
||||
teacher.photo = teacher_image
|
||||
teacher.short_bio = (
|
||||
"Attore, regista e formatore. Accompagna gruppi e persone "
|
||||
"nella ricerca di una presenza scenica sincera."
|
||||
)
|
||||
teacher.full_bio = (
|
||||
"<p>Da oltre quindici anni lavora tra formazione, creazione "
|
||||
"collettiva e spettacolo dal vivo.</p>"
|
||||
)
|
||||
teacher.quote = "Il teatro non è fingere: è imparare a essere presenti."
|
||||
teacher.save()
|
||||
LessonInfo.objects.update_or_create(
|
||||
day_time="Ogni mercoledì, 19:30–22:00",
|
||||
defaults={
|
||||
"location": "Spazio Teatro, Via del Teatro 12, Roma",
|
||||
"location": "Spazio Teatro, Via dell'Epomeo 9999, Napoli",
|
||||
"audience": "Adulti, con o senza esperienza precedente.",
|
||||
"description": (
|
||||
"<p>Training fisico e vocale, improvvisazione, ascolto, "
|
||||
|
||||
Reference in New Issue
Block a user