Commit bf2016e8 authored by Luko van der Maas's avatar Luko van der Maas
Browse files

fixed registration start in admin events overview

parent 3613b96e
......@@ -83,7 +83,11 @@ class EventAdmin(DoNextModelAdmin):
event_date.short_description = _('Event Date')
def registration_date(self, obj):
start_date = obj.registration_start
if obj.registration_start is not None:
start_date = timezone.make_naive(obj.registration_start)
else:
start_date = obj.registration_start
return _date(start_date, "l d b Y, G:i")
registration_date.short_description = _('Registration Start')
......
Markdown is supported
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