diff --git a/pinaxcon/monkey_patch.py b/pinaxcon/monkey_patch.py index 692ba9628611861f683dcb0c79768b1a80c01ff5..e8e16033aa2720809370868043a86328751c58de 100644 --- a/pinaxcon/monkey_patch.py +++ b/pinaxcon/monkey_patch.py @@ -52,6 +52,8 @@ def patch_conference_schedule(): update_presentation(request, slot_data, presentation) elif slot.kind.label.lower() == "keynote": update_keynote(request, slot_data) + elif slot.kind.label.lower() == "housekeeping": + update_keynote(request, slot_data) else: pass @@ -80,12 +82,13 @@ def patch_conference_schedule(): author_name = speaker author_email, author_twitter_id = values + slot_data["name"] = "Keynote" slot_data["authors"] = [author_name] slot_data["contact"] = [ author_email ] if request.user.is_staff else ["redacted"] - slot_data["abstract"] = "Keynote presentation from North Bay Python 2017" - slot_data["description"] = "Keynote presentation from North Bay Python 2017" + slot_data["abstract"] = "Keynote presentation from North Bay Python 2017 by " + author_name + slot_data["description"] = "Keynote presentation from North Bay Python 2017 by " + author_name slot_data["conf_url"] = "https://2017.northbaypython.org" slot_data["cancelled"] = False slot_data["reviewers"] = "" @@ -93,4 +96,11 @@ def patch_conference_schedule(): slot_data["twitter_id"] = author_twitter_id slot_data["released"] = True + def update_housekeeping(request, slot_data): + slot_data["authors"] = ["North Bay Python"] + slot_data["contact"] = [ + "spam@northbaypython.org" + ] if request.user.is_staff else ["redacted"] + + sv._schedule_json = schedule_json