-
Notifications
You must be signed in to change notification settings - Fork 153
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add wagtail * Wagtail version of homepage model And add wagtail to requirements.txt * add google login to the Wagtail login page * wagtail feature flag ENABLE_WAGTAIL added * lol flake * not everything wagtail can be locked away * wrong env syntax * proper filtering
- Loading branch information
Showing
14 changed files
with
291 additions
and
24 deletions.
There are no files selected for viewing
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
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
21 changes: 21 additions & 0 deletions
21
network-api/networkapi/highlights/migrations/0006_auto_20180208_2205.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,21 @@ | ||
# -*- coding: utf-8 -*- | ||
# Generated by Django 1.11 on 2018-02-08 22:05 | ||
from __future__ import unicode_literals | ||
|
||
from django.db import migrations | ||
import wagtail.wagtailcore.fields | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('highlights', '0005_remove_highlight_homepage'), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name='highlight', | ||
name='footer', | ||
field=wagtail.wagtailcore.fields.RichTextField(help_text='Content to appear after description (view more projects link or something similar)', null=True, verbose_name='footer'), | ||
), | ||
] |
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
89 changes: 89 additions & 0 deletions
89
network-api/networkapi/homepage/migrations/0004_auto_20180208_2205.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,89 @@ | ||
# -*- coding: utf-8 -*- | ||
# Generated by Django 1.11 on 2018-02-08 22:05 | ||
from __future__ import unicode_literals | ||
|
||
from django.db import migrations, models | ||
import django.db.models.deletion | ||
import modelcluster.fields | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('wagtailcore', '0040_page_draft_title'), | ||
('people', '0025_remove_person_homepage'), | ||
('highlights', '0006_auto_20180208_2205'), | ||
('news', '0011_auto_20171012_1326'), | ||
('homepage', '0003_auto_20170919_1838'), | ||
] | ||
|
||
operations = [ | ||
migrations.CreateModel( | ||
name='HomepageRelatedHighlights', | ||
fields=[ | ||
('highlight_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='highlights.Highlight')), | ||
('sort_order', models.IntegerField(blank=True, editable=False, null=True)), | ||
('highlights', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='homepage_highlights', to='highlights.Highlight')), | ||
], | ||
options={ | ||
'ordering': ['sort_order'], | ||
'abstract': False, | ||
}, | ||
bases=('highlights.highlight', models.Model), | ||
), | ||
migrations.CreateModel( | ||
name='HomepageRelatedNews', | ||
fields=[ | ||
('news_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='news.News')), | ||
('sort_order', models.IntegerField(blank=True, editable=False, null=True)), | ||
('news', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='homepage_news', to='news.News')), | ||
], | ||
options={ | ||
'ordering': ['sort_order'], | ||
'abstract': False, | ||
}, | ||
bases=('news.news', models.Model), | ||
), | ||
migrations.CreateModel( | ||
name='HomepageRelatedPeople', | ||
fields=[ | ||
('person_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='people.Person')), | ||
('sort_order', models.IntegerField(blank=True, editable=False, null=True)), | ||
], | ||
options={ | ||
'ordering': ['sort_order'], | ||
'abstract': False, | ||
}, | ||
bases=('people.person', models.Model), | ||
), | ||
migrations.CreateModel( | ||
name='WagtailHomepage', | ||
fields=[ | ||
('page_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='wagtailcore.Page')), | ||
], | ||
options={ | ||
'abstract': False, | ||
}, | ||
bases=('wagtailcore.page',), | ||
), | ||
migrations.AddField( | ||
model_name='homepagerelatedpeople', | ||
name='page', | ||
field=modelcluster.fields.ParentalKey(on_delete=django.db.models.deletion.CASCADE, related_name='homepage_people', to='homepage.WagtailHomepage'), | ||
), | ||
migrations.AddField( | ||
model_name='homepagerelatedpeople', | ||
name='people', | ||
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='homepage_people', to='people.Person'), | ||
), | ||
migrations.AddField( | ||
model_name='homepagerelatednews', | ||
name='page', | ||
field=modelcluster.fields.ParentalKey(on_delete=django.db.models.deletion.CASCADE, related_name='homepage_news', to='homepage.WagtailHomepage'), | ||
), | ||
migrations.AddField( | ||
model_name='homepagerelatedhighlights', | ||
name='page', | ||
field=modelcluster.fields.ParentalKey(on_delete=django.db.models.deletion.CASCADE, related_name='homepage_highlights', to='homepage.WagtailHomepage'), | ||
), | ||
] |
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
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
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
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
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
Oops, something went wrong.