- Fixed migrations
- fixed live blog admin field issue
This commit is contained in:
parent
a1498d7f42
commit
d71f742efb
3 changed files with 5 additions and 25 deletions
|
@ -247,7 +247,7 @@ class PostAdmin(PlaceholderAdminMixin, FrontendEditableAdminMixin,
|
||||||
if request.user.is_superuser:
|
if request.user.is_superuser:
|
||||||
fsets[1][1]['fields'][0].append('author')
|
fsets[1][1]['fields'][0].append('author')
|
||||||
if apps.is_installed('djangocms_blog.liveblog'):
|
if apps.is_installed('djangocms_blog.liveblog'):
|
||||||
fsets[1][1]['fields'][2].append('enable_liveblog')
|
fsets[2][1]['fields'][2].append('enable_liveblog')
|
||||||
filter_function = get_setting('ADMIN_POST_FIELDSET_FILTER')
|
filter_function = get_setting('ADMIN_POST_FIELDSET_FILTER')
|
||||||
if callable(filter_function):
|
if callable(filter_function):
|
||||||
fsets = filter_function(fsets, request, obj=obj)
|
fsets = filter_function(fsets, request, obj=obj)
|
||||||
|
|
|
@ -1,8 +1,9 @@
|
||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
# Generated by Django 1.10.5 on 2017-05-09 13:01
|
# Generated by Django 1.10.5 on 2017-07-22 05:28
|
||||||
from __future__ import unicode_literals
|
from __future__ import unicode_literals
|
||||||
|
|
||||||
from django.db import migrations, models
|
from django.db import migrations
|
||||||
|
import djangocms_blog.fields
|
||||||
|
|
||||||
|
|
||||||
class Migration(migrations.Migration):
|
class Migration(migrations.Migration):
|
||||||
|
@ -15,6 +16,6 @@ class Migration(migrations.Migration):
|
||||||
migrations.AlterField(
|
migrations.AlterField(
|
||||||
model_name='posttranslation',
|
model_name='posttranslation',
|
||||||
name='slug',
|
name='slug',
|
||||||
field=models.SlugField(allow_unicode=True, blank=True, max_length=255, verbose_name='slug'),
|
field=djangocms_blog.fields.AutoSlugField(allow_unicode=True, blank=True, db_index=False, max_length=255, verbose_name='slug'),
|
||||||
),
|
),
|
||||||
]
|
]
|
||||||
|
|
|
@ -1,21 +0,0 @@
|
||||||
# -*- coding: utf-8 -*-
|
|
||||||
# Generated by Django 1.10.5 on 2017-07-22 05:28
|
|
||||||
from __future__ import unicode_literals
|
|
||||||
|
|
||||||
from django.db import migrations
|
|
||||||
import djangocms_blog.fields
|
|
||||||
|
|
||||||
|
|
||||||
class Migration(migrations.Migration):
|
|
||||||
|
|
||||||
dependencies = [
|
|
||||||
('djangocms_blog', '0031_auto_20170610_1744'),
|
|
||||||
]
|
|
||||||
|
|
||||||
operations = [
|
|
||||||
migrations.AlterField(
|
|
||||||
model_name='posttranslation',
|
|
||||||
name='slug',
|
|
||||||
field=djangocms_blog.fields.AutoSlugField(allow_unicode=True, blank=True, db_index=False, max_length=255, verbose_name='slug'),
|
|
||||||
),
|
|
||||||
]
|
|
Loading…
Reference in a new issue