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
Simon Daron
panikweb
Commits
e1a1a516
Commit
e1a1a516
authored
Dec 27, 2013
by
fred
Browse files
home: get sounds ordered by creation time, not diffusion time (#1125)
parent
ca785567
Changes
1
Hide whitespace changes
Inline
Side-by-side
panikweb/views.py
View file @
e1a1a516
...
@@ -431,7 +431,7 @@ class Home(TemplateView):
...
@@ -431,7 +431,7 @@ class Home(TemplateView):
where
=
[
'''datetime = (SELECT MIN(datetime)
where
=
[
'''datetime = (SELECT MIN(datetime)
FROM emissions_diffusion
FROM emissions_diffusion
WHERE episode_id = emissions_episode.id)'''
],
WHERE episode_id = emissions_episode.id)'''
],
tables
=
[
'emissions_diffusion'
],).
order_by
(
'-
first_diffusion
'
).
distinct
()
[:
3
]
tables
=
[
'emissions_diffusion'
],).
order_by
(
'-
creation_timestamp
'
).
distinct
()
[:
3
]
context
[
'newsletter_form'
]
=
SubscribeForm
()
context
[
'newsletter_form'
]
=
SubscribeForm
()
...
...
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