mise-en-production
[auf_framonde.git] / project / cmsplugin_contact_plus / inline_ordering / admin.py
1 from django.contrib.admin import TabularInline, StackedInline
2 from django.conf import settings
3
4 INLINE_ORDERING_JS = getattr(settings,
5 'INLINE_ORDERING_JS', 'inline_ordering.js')
6
7
8 class OrderableStackedInline(StackedInline):
9
10 """Adds necessary media files to regular Django StackedInline"""
11
12 class Media:
13 js = (INLINE_ORDERING_JS,)
14
15
16 class OrderableTabularInline(TabularInline):
17
18 """Adds necessary media files to regular Django TabularInline"""
19
20 class Media:
21 js = (INLINE_ORDERING_JS,)