Merge pull request #198 from nephila/feature/admin_improvements

Admin  improvements
This commit is contained in:
Iacopo Spalletti 2016-02-10 16:30:54 +01:00
commit b7b7cf20cf
3 changed files with 5 additions and 2 deletions

View file

@ -8,6 +8,7 @@ History
* Make categories non required
* Fix tests with parler>=1.6
* Use all_languages_column to admin
0.6.3 (2015-12-22)
++++++++++++++++++

View file

@ -25,6 +25,7 @@ except ImportError:
class BlogCategoryAdmin(EnhancedModelAdminMixin, ModelAppHookConfig, TranslatableAdmin):
def get_prepopulated_fields(self, request, obj=None):
app_config_default = self._app_config_select(request, obj)
if app_config_default is None and request.method == 'GET':
@ -41,7 +42,8 @@ class PostAdmin(PlaceholderAdminMixin, FrontendEditableAdminMixin,
ModelAppHookConfig, TranslatableAdmin):
form = PostAdminForm
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',)
date_hierarchy = 'date_published'

View file

@ -27,7 +27,7 @@ setup(
],
include_package_data=True,
install_requires=[
'django-parler>=1.2',
'django-parler>=1.5',
'django-cms>3.0.11',
'django-taggit>=0.12.2',
'django-filer',