Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Küppers, Dorothee
oos_2020_todo
Commits
c5b2e797
Commit
c5b2e797
authored
Jul 06, 2020
by
dorothee.kueppers
Browse files
postgresql fix?
parent
6e2a3bd1
Changes
1
Hide whitespace changes
Inline
Side-by-side
todo/views.py
View file @
c5b2e797
...
...
@@ -39,10 +39,10 @@ def get_landing_page(request):
# settings.EMAIL_HOST_USER,
# ['DoroKueppers@web.de'],
# fail_silently=False)
#
try:
selection
=
Selection
.
objects
.
filter
(
active
=
True
).
latest
(
'endtime'
)
#
except Model.DoesNotExist:
#
selection = None
try
:
selection
=
Selection
.
objects
.
filter
(
active
=
True
).
latest
(
'endtime'
)
except
Model
.
DoesNotExist
:
selection
=
None
if
selection
is
not
None
and
selection
.
endtime
>
timezone
.
now
():
running_selection
=
True
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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