-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #291 from Parbhat/master
Address issue #265
- Loading branch information
Showing
8 changed files
with
1,557 additions
and
1,019 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
{{cookiecutter.repo_name}}/feeds/migrations/0001_initial.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# -*- coding: utf-8 -*- | ||
# Generated by Django 1.9.7 on 2016-06-18 12:31 | ||
from __future__ import unicode_literals | ||
|
||
from django.db import migrations, models | ||
import django.db.models.deletion | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
initial = True | ||
|
||
dependencies = [ | ||
('wagtailcore', '0028_merge'), | ||
] | ||
|
||
operations = [ | ||
migrations.CreateModel( | ||
name='FeedsAppSettings', | ||
fields=[ | ||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), | ||
('feed_app_label', models.CharField(help_text=b'blog App whose Feed is to be generated', max_length=255)), | ||
('feed_model_name', models.CharField(help_text=b'Model to be used for feed generation', max_length=255)), | ||
('site', models.OneToOneField(editable=False, on_delete=django.db.models.deletion.CASCADE, to='wagtailcore.Site')), | ||
], | ||
options={ | ||
'abstract': False, | ||
}, | ||
), | ||
] |
50 changes: 50 additions & 0 deletions
50
{{cookiecutter.repo_name}}/feeds/migrations/0002_auto_20160620_1155.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
# -*- coding: utf-8 -*- | ||
# Generated by Django 1.9.7 on 2016-06-20 11:55 | ||
from __future__ import unicode_literals | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('feeds', '0001_initial'), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name='feedsappsettings', | ||
name='feed_author_email', | ||
field=models.EmailField(blank=True, help_text=b'Email of author', max_length=255), | ||
), | ||
migrations.AddField( | ||
model_name='feedsappsettings', | ||
name='feed_author_link', | ||
field=models.URLField(blank=True, help_text=b'Link of author', max_length=255), | ||
), | ||
migrations.AddField( | ||
model_name='feedsappsettings', | ||
name='feed_description', | ||
field=models.CharField(blank=True, help_text=b'Description of field', max_length=255), | ||
), | ||
migrations.AddField( | ||
model_name='feedsappsettings', | ||
name='feed_item_content_field', | ||
field=models.CharField(blank=True, help_text=b'Content Field for feed item', max_length=255), | ||
), | ||
migrations.AddField( | ||
model_name='feedsappsettings', | ||
name='feed_item_description_field', | ||
field=models.CharField(blank=True, help_text=b'Description field for feed item', max_length=255), | ||
), | ||
migrations.AddField( | ||
model_name='feedsappsettings', | ||
name='feed_link', | ||
field=models.URLField(blank=True, help_text=b'link for Feed', max_length=255), | ||
), | ||
migrations.AddField( | ||
model_name='feedsappsettings', | ||
name='feed_title', | ||
field=models.CharField(blank=True, help_text=b'Title of Feed', max_length=255), | ||
), | ||
] |
60 changes: 60 additions & 0 deletions
60
{{cookiecutter.repo_name}}/feeds/migrations/0003_auto_20160620_1301.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
# -*- coding: utf-8 -*- | ||
# Generated by Django 1.9.7 on 2016-06-20 13:01 | ||
from __future__ import unicode_literals | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('feeds', '0002_auto_20160620_1155'), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name='feedsappsettings', | ||
name='feed_app_label', | ||
field=models.CharField(blank=True, help_text=b'blog App whose Feed is to be generated', max_length=255, null=True), | ||
), | ||
migrations.AlterField( | ||
model_name='feedsappsettings', | ||
name='feed_author_email', | ||
field=models.EmailField(blank=True, help_text=b'Email of author', max_length=255, null=True), | ||
), | ||
migrations.AlterField( | ||
model_name='feedsappsettings', | ||
name='feed_author_link', | ||
field=models.URLField(blank=True, help_text=b'Link of author', max_length=255, null=True), | ||
), | ||
migrations.AlterField( | ||
model_name='feedsappsettings', | ||
name='feed_description', | ||
field=models.CharField(blank=True, help_text=b'Description of field', max_length=255, null=True), | ||
), | ||
migrations.AlterField( | ||
model_name='feedsappsettings', | ||
name='feed_item_content_field', | ||
field=models.CharField(blank=True, help_text=b'Content Field for feed item', max_length=255, null=True), | ||
), | ||
migrations.AlterField( | ||
model_name='feedsappsettings', | ||
name='feed_item_description_field', | ||
field=models.CharField(blank=True, help_text=b'Description field for feed item', max_length=255, null=True), | ||
), | ||
migrations.AlterField( | ||
model_name='feedsappsettings', | ||
name='feed_link', | ||
field=models.URLField(blank=True, help_text=b'link for Feed', max_length=255, null=True), | ||
), | ||
migrations.AlterField( | ||
model_name='feedsappsettings', | ||
name='feed_model_name', | ||
field=models.CharField(blank=True, help_text=b'Model to be used for feed generation', max_length=255, null=True), | ||
), | ||
migrations.AlterField( | ||
model_name='feedsappsettings', | ||
name='feed_title', | ||
field=models.CharField(blank=True, help_text=b'Title of Feed', max_length=255, null=True), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,33 @@ | ||
from django.db import models | ||
|
||
from wagtail.contrib.settings.models import BaseSetting, register_setting | ||
|
||
# Create your models here. | ||
|
||
|
||
@register_setting | ||
class FeedsAppSettings(BaseSetting): | ||
feed_app_label = models.CharField( | ||
max_length=255, help_text='blog App whose Feed is to be generated', | ||
null=True, blank=True) | ||
feed_model_name = models.CharField( | ||
max_length=255, help_text='Model to be used for feed generation', | ||
null=True, blank=True) | ||
feed_title = models.CharField( | ||
max_length=255, help_text='Title of Feed', null=True, blank=True) | ||
feed_link = models.URLField( | ||
max_length=255, help_text='link for Feed', null=True, blank=True) | ||
feed_description = models.CharField( | ||
max_length=255, help_text='Description of field', null=True, | ||
blank=True) | ||
feed_author_email = models.EmailField( | ||
max_length=255, help_text='Email of author', null=True, blank=True) | ||
feed_author_link = models.URLField( | ||
max_length=255, help_text='Link of author', null=True, blank=True) | ||
|
||
feed_item_description_field = models.CharField( | ||
max_length=255, help_text='Description field for feed item', | ||
null=True, blank=True) | ||
feed_item_content_field = models.CharField( | ||
max_length=255, help_text='Content Field for feed item', | ||
null=True, blank=True) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,4 +7,4 @@ celery==3.1.23 | |
django-libsass==0.7 | ||
libsass==0.11.1 | ||
ansible==2.1.0.0 | ||
wagalytics==0.5 | ||
wagalytics==0.6 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters