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
2c2e108c
Unverified
Commit
2c2e108c
authored
Mar 31, 2017
by
Thom Wiggers
📐
Browse files
Use newer version of flake8
parent
84402470
Changes
5
Hide whitespace changes
Inline
Side-by-side
tox.ini
View file @
2c2e108c
...
...
@@ -32,7 +32,7 @@ whitelist_externals=
exclude
=
*/migrations/*, */urls.py, .ropeproject
[testenv:flake8]
deps
=
flake8
==3.0.2
deps
=
flake8
skip_install
=
True
commands
=
flake8
.
website/members/admin.py
View file @
2c2e108c
...
...
@@ -146,6 +146,7 @@ class UserAdmin(BaseUserAdmin):
student_number_csv_export
.
short_description
=
_
(
'Download student number '
'label for selected users'
)
admin
.
site
.
register
(
models
.
BecomeAMemberDocument
)
# re-register User admin
...
...
website/merchandise/sitemaps.py
View file @
2c2e108c
...
...
@@ -11,6 +11,7 @@ class StaticViewSitemap(sitemaps.Sitemap):
def
location
(
self
,
item
):
return
reverse
(
item
)
sitemap
=
{
'merchandise-static'
:
StaticViewSitemap
,
}
website/photos/admin.py
View file @
2c2e108c
...
...
@@ -115,5 +115,6 @@ class PhotoAdmin(admin.ModelAdmin):
_
(
"Full-sized photos will not be saved "
"on the Thalia-website."
))
admin
.
site
.
register
(
Album
,
AlbumAdmin
)
admin
.
site
.
register
(
Photo
,
PhotoAdmin
)
website/thabloid/admin.py
View file @
2c2e108c
...
...
@@ -6,4 +6,5 @@ from .models import Thabloid
class
ThabloidAdmin
(
admin
.
ModelAdmin
):
list_filter
=
(
'year'
,
)
admin
.
site
.
register
(
Thabloid
,
ThabloidAdmin
)
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