2010-10-27 15:08:15 +08:00
|
|
|
# ACTION_CHECKBOX_NAME is unused, but should stay since its import from here
|
|
|
|
# has been referenced in documentation.
|
2012-12-18 08:04:10 +08:00
|
|
|
from django.contrib.admin.decorators import register
|
2010-10-27 15:08:15 +08:00
|
|
|
from django.contrib.admin.helpers import ACTION_CHECKBOX_NAME
|
2008-07-19 07:54:34 +08:00
|
|
|
from django.contrib.admin.options import ModelAdmin, HORIZONTAL, VERTICAL
|
|
|
|
from django.contrib.admin.options import StackedInline, TabularInline
|
|
|
|
from django.contrib.admin.sites import AdminSite, site
|
2011-05-03 18:44:23 +08:00
|
|
|
from django.contrib.admin.filters import (ListFilter, SimpleListFilter,
|
|
|
|
FieldListFilter, BooleanFieldListFilter, RelatedFieldListFilter,
|
|
|
|
ChoicesFieldListFilter, DateFieldListFilter, AllValuesFieldListFilter)
|
2013-09-07 07:23:25 +08:00
|
|
|
from django.utils.module_loading import autodiscover_modules
|
2008-07-19 07:54:34 +08:00
|
|
|
|
2008-12-24 02:25:24 +08:00
|
|
|
|
2008-07-19 07:54:34 +08:00
|
|
|
def autodiscover():
|
2013-09-07 07:23:25 +08:00
|
|
|
autodiscover_modules('admin', register_to=site)
|