Gitlab CSE Unil

admin.py 406 Bytes
Newer Older
Julien Furrer's avatar
Julien Furrer committed
1
2
3
4
# coding=utf-8
from __future__ import unicode_literals
from django.contrib import admin

5
from adim.models import AnObj, Annotation  # AOSchema, AOType, AOAttribute, AOChoice
Julien Furrer's avatar
Julien Furrer committed
6
7


8
9
class AnObjAdmin(admin.ModelAdmin):
    list_filter = ('owner',)
Julien Furrer's avatar
Julien Furrer committed
10
11
12
admin.site.register(AnObj, AnObjAdmin)


13
14
15
class AnnotationAdmin(admin.ModelAdmin):
    list_filter = ('annotable', )
admin.site.register(Annotation, AnnotationAdmin)