From 89ea65a0c86c5f2ac1b526159432fd415c9d5002 Mon Sep 17 00:00:00 2001 From: Flo Ha Date: Mon, 15 Jun 2026 16:36:30 +0200 Subject: [PATCH] feat(suff): disable new user registration post-festival New usernames now show a "party is over" page instead of proceeding to account creation. Existing users can still log in. Extended BOOKING_END to 2026-06-17 23:59 to allow edits through Wednesday night. Co-Authored-By: Claude Sonnet 4.6 --- gaehsnitz/suff.py | 10 ++++++---- gaehsnitz/templates/suff/party_over.html | 15 +++++++++++++++ 2 files changed, 21 insertions(+), 4 deletions(-) create mode 100644 gaehsnitz/templates/suff/party_over.html diff --git a/gaehsnitz/suff.py b/gaehsnitz/suff.py index d7a3273..86caefd 100644 --- a/gaehsnitz/suff.py +++ b/gaehsnitz/suff.py @@ -24,7 +24,7 @@ ANONYMOUS_USERNAME = "anonym" BERLIN = ZoneInfo("Europe/Berlin") # Festival window: 2026-05-30 10:00 – 2026-06-14 22:00 Berlin time. BOOKING_START = datetime(2026, 5, 30, 10, 0, 0, tzinfo=BERLIN) -BOOKING_END = datetime(2026, 6, 14, 22, 0, 0, tzinfo=BERLIN) +BOOKING_END = datetime(2026, 6, 17, 23, 59, 0, tzinfo=BERLIN) DAY_BY_WEEKDAY = {3: 1, 4: 2, 5: 3, 6: 4} DAY_CUTOFF_HOUR = 6 @@ -177,9 +177,11 @@ def name_view(request): existing = None if existing is None: - request.session["pending_username"] = username - request.session["pending_mode"] = "create" - return HttpResponseRedirect(reverse("suff:pin")) + return render( + request, + "suff/party_over.html", + {"phase": phase, "username": username}, + ) if not existing.pin: if _user_has_activity(existing): diff --git a/gaehsnitz/templates/suff/party_over.html b/gaehsnitz/templates/suff/party_over.html new file mode 100644 index 0000000..ec51448 --- /dev/null +++ b/gaehsnitz/templates/suff/party_over.html @@ -0,0 +1,15 @@ +{% extends "suff/base.html" %} + +{% block content %} +

Party vorbei!

+

+ Der Name {{ username }} existiert noch nicht — + neue Accounts können nicht mehr angelegt werden, weil das Festival vorbei ist. +

+

+ Du hast schon einen Account? Gib deinen Namen nochmal ein. +

+ +{% endblock %}