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:
commit
5d967c68b5
40 changed files with 2040 additions and 0 deletions
5
rides/context_processors.py
Normal file
5
rides/context_processors.py
Normal 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}
|
||||
Loading…
Add table
Add a link
Reference in a new issue