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
3613b96e
Commit
3613b96e
authored
Dec 04, 2017
by
Luko van der Maas
Browse files
Made the start date a naive when being sent to the admin overview page.
parent
99db59f1
Changes
1
Hide whitespace changes
Inline
Side-by-side
website/events/admin.py
View file @
3613b96e
...
...
@@ -78,7 +78,7 @@ class EventAdmin(DoNextModelAdmin):
return
super
().
has_change_permission
(
request
,
event
)
def
event_date
(
self
,
obj
):
event_date
=
obj
.
start
event_date
=
timezone
.
make_naive
(
obj
.
start
)
return
_date
(
event_date
,
"l d b Y, G:i"
)
event_date
.
short_description
=
_
(
'Event Date'
)
...
...
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