Gitlab CSE Unil

admin.py 773 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
from eav.admin import BaseEntityAdmin, BaseSchemaAdmin
5
# from sorl.thumbnail.admin import AdminImageMixin
Julien Furrer's avatar
Julien Furrer committed
6

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

9
# from adim.forms import AnObjForm
Julien Furrer's avatar
Julien Furrer committed
10
11


12
class AnObjAdmin(BaseEntityAdmin):
13
14
    pass
    # form = AnObjForm
Julien Furrer's avatar
Julien Furrer committed
15
16
admin.site.register(AnObj, AnObjAdmin)

17
# admin.site.register(AOType)
Julien Furrer's avatar
Julien Furrer committed
18

19
20
21
# class AOSchemaAdmin(BaseSchemaAdmin):
#     filter_horizontal = ('ao_types', )
# admin.site.register(AOSchema, AOSchemaAdmin)
Julien Furrer's avatar
Julien Furrer committed
22

23
24
25
26
# class AOChoiceAdmin(admin.ModelAdmin):
#     list_filter = ('schema', )
# admin.site.register(AOChoice, AOChoiceAdmin)
# admin.site.register(AOAttribute)
Julien Furrer's avatar
Julien Furrer committed
27
28

admin.site.register(Annotation)