Commit e5bb26d4 authored by Sébastiaan Versteeg's avatar Sébastiaan Versteeg
Browse files

Merge branch '119-cannot-open-event-detail-page-when-not-logged-in' into 'master'

Make sure that anonymous users can view events

The AnonymousUser object doesn't have a `member` property.
It was contained in a try-catch, so also ocatch AttributeError.

Closes #119

See merge request !140
parents a1a98023 c96bfffa
......@@ -166,7 +166,7 @@ def event(request, event_id):
context['registration'] = registration
except Registration.DoesNotExist:
except (Registration.DoesNotExist, AttributeError):
return render(request, 'events/event.html', context)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment