Cleaned up migrations, tweak settings

This commit is contained in:
Oleg Lavrovsky 2017-10-16 10:59:59 +02:00
parent f9c1e08dd1
commit 52360ae105
5 changed files with 23 additions and 38 deletions

View file

@ -1,33 +0,0 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.11.6 on 2017-10-13 13:15
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('feedler', '0006_auto_20171012_1458'),
]
operations = [
migrations.RenameField(
model_name='feedlysettings',
old_name='feedly_stream',
new_name='streams',
),
migrations.RemoveField(
model_name='feedlysettings',
name='feedly_auth',
),
migrations.RemoveField(
model_name='feedlysettings',
name='feedly_pages',
),
migrations.AddField(
model_name='feedlysettings',
name='token',
field=models.CharField(blank=True, help_text='Access Token from developer.feedly.com', max_length=255),
),
]

View file

@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.11.6 on 2017-10-13 21:42
# Generated by Django 1.11.6 on 2017-10-16 08:59
from __future__ import unicode_literals
from django.db import migrations, models
@ -8,16 +8,29 @@ from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('feedler', '0007_auto_20171013_1515'),
('feedler', '0006_auto_20171012_1458'),
]
operations = [
migrations.RenameField(
model_name='feedlysettings',
old_name='feedly_stream',
new_name='streams',
),
migrations.RemoveField(
model_name='feedlysettings',
name='feedly_auth',
),
migrations.RemoveField(
model_name='feedlysettings',
name='feedly_pages',
),
migrations.AddField(
model_name='feedlysettings',
name='refresh',
field=models.CharField(blank=True, help_text='Refresh Token for automatic update (pro account)', max_length=1024),
),
migrations.AlterField(
migrations.AddField(
model_name='feedlysettings',
name='token',
field=models.CharField(blank=True, help_text='Access Token from feedly.com/v3/auth/dev', max_length=1024),

View file

@ -21,7 +21,7 @@ modeladmin_register(EntryModelAdmin)
class StreamModelAdmin(ModelAdmin):
model = Stream
menu_icon = 'date'
menu_order = 1000
menu_order = 900
add_to_settings_menu = True
exclude_from_explorer = True
list_display = ('title', 'ident')

View file

@ -9,7 +9,7 @@ from wagtail.contrib.settings.models import BaseSetting, register_setting
# A simple feedback module built into the site admin
@register_setting
@register_setting(icon='help')
class DataletsSettings(BaseSetting):
feedback_question = models.TextField(verbose_name='Name',
help_text='Who should we reply to for questions?', blank=True)
@ -42,3 +42,4 @@ def handle_save_settings(sender, instance, *args, **kwargs):
instance.feedback_status = None
instance.feedback_question = ""
instance.feedback_comment = ""
instance.save()

View file

@ -21,6 +21,10 @@ DATABASES = {
}
}
INSTALLED_APPS = INSTALLED_APPS + [
'wagtail.contrib.wagtailstyleguide',
]
try:
from .local import *
except ImportError: