Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
thalia
concrexit
Commits
bf2016e8
Commit
bf2016e8
authored
Dec 06, 2017
by
Luko van der Maas
Browse files
fixed registration start in admin events overview
parent
3613b96e
Changes
1
Hide whitespace changes
Inline
Side-by-side
website/events/admin.py
View file @
bf2016e8
...
...
@@ -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'
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment