Gitlab CSE Unil
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
M. Chardon
ADIM
Commits
095aa805
Commit
095aa805
authored
Jun 16, 2015
by
Julien Furrer
Browse files
Added list_filter to AnObj admin
parent
471bf635
Changes
1
Hide whitespace changes
Inline
Side-by-side
adim_project/adim/admin.py
View file @
095aa805
# coding=utf-8
from
__future__
import
unicode_literals
from
django.contrib
import
admin
from
eav.admin
import
BaseEntityAdmin
from
adim.models
import
AnObj
,
Annotation
# AOSchema, AOType, AOAttribute, AOChoice
class
AnObjAdmin
(
BaseEntityAdmin
):
pass
# form = AnObjForm
class
AnObjAdmin
(
admin
.
ModelAdmin
):
list_filter
=
(
'owner'
,)
admin
.
site
.
register
(
AnObj
,
AnObjAdmin
)
# admin.site.register(AOType)
...
...
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