11
2- PLUGINS = ('actions' , 'filters' , 'bookmark' , 'export' , 'layout' , 'refresh' , 'sortable' , 'details' ,
3- 'editable' , 'relate' , 'chart' , 'ajax' , 'relfield' , 'inline' , 'topnav' , 'portal' , 'quickform' ,
4- 'wizard' , 'images' , 'auth' , 'multiselect' , 'themes' , 'aggregation' , 'mobile' , 'passwords' ,
2+ PLUGINS = ('actions' , 'filters' , 'bookmark' , 'export' , 'layout' , 'refresh' , 'sortable' , 'details' ,
3+ 'editable' , 'relate' , 'chart' , 'ajax' , 'relfield' , 'inline' , 'topnav' , 'portal' , 'quickform' ,
4+ 'wizard' , 'images' , 'auth' , 'multiselect' , 'themes' , 'aggregation' , 'mobile' , 'passwords' ,
55 'sitemenu' , 'language' , 'comments' )
66
7+
78def register_builtin_plugins (site ):
89 from django .utils .importlib import import_module
910 from django .conf import settings
1011
1112 exclude_plugins = getattr (settings , 'XADMIN_EXCLUDE_PLUGINS' , [])
1213
13- [import_module ('xadmin.plugins.%s' % plugin ) for plugin in PLUGINS if plugin not in exclude_plugins ]
14+ [import_module ('xadmin.plugins.%s' % plugin ) for plugin in PLUGINS if plugin not in exclude_plugins ]
0 commit comments