Skip to content

Commit

Permalink
Merge pull request #290 from clabs/dev
Browse files Browse the repository at this point in the history
Temp fix for context selection
  • Loading branch information
ethrgeist authored Nov 16, 2024
2 parents 0ed7470 + 0e3161b commit d3e9293
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/rockon/base/views/account.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,9 @@ def login_token(request, token):
login(request, user, backend="django.contrib.auth.backends.ModelBackend")
current_event = Event.get_current_event()

if not current_event:
current_event = Event.objects.order_by("start_date").first()

# Store current_event in user session
request.session["current_event_id"] = str(current_event.id)
request.session["current_event_slug"] = current_event.slug
Expand Down

0 comments on commit d3e9293

Please sign in to comment.