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
9de12563
Unverified
Commit
9de12563
authored
Jan 21, 2017
by
Joost Rijneveld
Browse files
Sort boards descending by default
Places like the boards page seem to use the default
parent
5360100a
Changes
1
Hide whitespace changes
Inline
Side-by-side
website/activemembers/models.py
View file @
9de12563
...
...
@@ -113,7 +113,10 @@ class Committee(models.Model, metaclass=ModelTranslateMeta):
class
BoardManager
(
models
.
Manager
):
def
get_queryset
(
self
):
return
super
().
get_queryset
().
filter
(
is_board
=
True
)
# sorting by descending order by default makes more sense for boards
return
(
super
().
get_queryset
()
.
filter
(
is_board
=
True
)
.
order_by
(
localize_attr_name
(
'-name'
)))
class
Board
(
Committee
):
...
...
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