Merge pull request #198 from nephila/feature/admin_improvements
Admin improvements
This commit is contained in:
commit
b7b7cf20cf
3 changed files with 5 additions and 2 deletions
|
@ -8,6 +8,7 @@ History
|
||||||
|
|
||||||
* Make categories non required
|
* Make categories non required
|
||||||
* Fix tests with parler>=1.6
|
* Fix tests with parler>=1.6
|
||||||
|
* Use all_languages_column to admin
|
||||||
|
|
||||||
0.6.3 (2015-12-22)
|
0.6.3 (2015-12-22)
|
||||||
++++++++++++++++++
|
++++++++++++++++++
|
||||||
|
|
|
@ -25,6 +25,7 @@ except ImportError:
|
||||||
|
|
||||||
|
|
||||||
class BlogCategoryAdmin(EnhancedModelAdminMixin, ModelAppHookConfig, TranslatableAdmin):
|
class BlogCategoryAdmin(EnhancedModelAdminMixin, ModelAppHookConfig, TranslatableAdmin):
|
||||||
|
|
||||||
def get_prepopulated_fields(self, request, obj=None):
|
def get_prepopulated_fields(self, request, obj=None):
|
||||||
app_config_default = self._app_config_select(request, obj)
|
app_config_default = self._app_config_select(request, obj)
|
||||||
if app_config_default is None and request.method == 'GET':
|
if app_config_default is None and request.method == 'GET':
|
||||||
|
@ -41,7 +42,8 @@ class PostAdmin(PlaceholderAdminMixin, FrontendEditableAdminMixin,
|
||||||
ModelAppHookConfig, TranslatableAdmin):
|
ModelAppHookConfig, TranslatableAdmin):
|
||||||
form = PostAdminForm
|
form = PostAdminForm
|
||||||
list_display = [
|
list_display = [
|
||||||
'title', 'author', 'date_published', 'app_config', 'languages', 'date_published_end'
|
'title', 'author', 'date_published', 'app_config', 'all_languages_column',
|
||||||
|
'date_published_end'
|
||||||
]
|
]
|
||||||
list_filter = ('app_config',)
|
list_filter = ('app_config',)
|
||||||
date_hierarchy = 'date_published'
|
date_hierarchy = 'date_published'
|
||||||
|
|
2
setup.py
2
setup.py
|
@ -27,7 +27,7 @@ setup(
|
||||||
],
|
],
|
||||||
include_package_data=True,
|
include_package_data=True,
|
||||||
install_requires=[
|
install_requires=[
|
||||||
'django-parler>=1.2',
|
'django-parler>=1.5',
|
||||||
'django-cms>3.0.11',
|
'django-cms>3.0.11',
|
||||||
'django-taggit>=0.12.2',
|
'django-taggit>=0.12.2',
|
||||||
'django-filer',
|
'django-filer',
|
||||||
|
|
Loading…
Add table
Reference in a new issue