Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
MOOC packages by hacklab
django-courses
Commits
73b6d16a
Commit
73b6d16a
authored
Sep 09, 2020
by
Laury Bueno
Browse files
[Stats] AccessibleArea can be edited via Django Admin
parent
1e90decf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
courses/stats/admin.py
courses/stats/admin.py
+9
-0
No files found.
courses/stats/admin.py
0 → 100644
View file @
73b6d16a
from
django.contrib
import
admin
from
.models
import
AccessibleArea
@
admin
.
register
(
AccessibleArea
)
class
AccessibleAreaAdmin
(
admin
.
ModelAdmin
):
list_display
=
(
'name'
,
'slug'
,
'created_at'
,
'updated_at'
)
search_fields
=
(
'name'
,
'slug'
)
Write
Preview
Markdown
is supported
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