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
thalia
concrexit
Commits
42e79ced
Commit
42e79ced
authored
Oct 20, 2018
by
Joren Vrancken
Committed by
Thom Wiggers
Oct 22, 2018
Browse files
Sort association documents by name
parent
e646508d
Changes
1
Hide whitespace changes
Inline
Side-by-side
website/documents/views.py
View file @
42e79ced
...
...
@@ -6,6 +6,7 @@ from django.http import Http404
from
django.shortcuts
import
get_object_or_404
,
redirect
,
render
from
django.utils
import
timezone
from
django.utils.text
import
slugify
from
django.utils.translation
import
get_language
from
sendfile
import
sendfile
from
documents.models
import
(
AnnualDocument
,
AssociationDocument
,
...
...
@@ -45,7 +46,11 @@ def index(request):
years
[
meeting_year
][
'general_meetings'
].
append
(
obj
)
return
render
(
request
,
'documents/index.html'
,
{
'association_documents'
:
AssociationDocument
.
objects
.
all
(),
'association_documents'
:
AssociationDocument
.
objects
.
order_by
(
f
'name_
{
get_language
()
}
'
)
.
all
(),
'years'
:
list
(
years
.
items
())
})
...
...
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