Skip to content

Commit

Permalink
Force FolderAdmin.actions_on_bottom = True for django-filer app
Browse files Browse the repository at this point in the history
  • Loading branch information
darklow committed Sep 4, 2014
1 parent 43747de commit e8aa4e6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions suit/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ def setup_filer():
from suit.widgets import AutosizedTextarea
from filer.admin.imageadmin import ImageAdminForm
from filer.admin.fileadmin import FileAdminChangeFrom
from filer.admin import FolderAdmin

def ensure_meta_widgets(meta_cls):
if not hasattr(meta_cls, 'widgets'):
Expand All @@ -69,6 +70,8 @@ def ensure_meta_widgets(meta_cls):

ensure_meta_widgets(ImageAdminForm.Meta)
ensure_meta_widgets(FileAdminChangeFrom.Meta)
FolderAdmin.actions_on_top = False
FolderAdmin.actions_on_bottom = True


if 'filer' in settings.INSTALLED_APPS:
Expand Down

0 comments on commit e8aa4e6

Please sign in to comment.