Add Radeln ohne Alter ride-coordination demo (Django + HTMX + Leaflet)

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
steffen1971 2026-06-20 21:20:17 +02:00
commit 5d967c68b5
40 changed files with 2040 additions and 0 deletions

View file

@ -0,0 +1,5 @@
def user_profile(request):
"""Stellt das Profil (mit Rolle) des eingeloggten Users im Template bereit."""
user = getattr(request, "user", None)
profile = getattr(user, "profile", None) if user and user.is_authenticated else None
return {"profile": profile}