diff --git a/opentech/public/news/migrations/0006_newspage_drupal_id.py b/opentech/public/news/migrations/0006_newspage_drupal_id.py new file mode 100644 index 0000000000000000000000000000000000000000..0638e9f29be72684b77eea38d7015117583f2b52 --- /dev/null +++ b/opentech/public/news/migrations/0006_newspage_drupal_id.py @@ -0,0 +1,18 @@ +# Generated by Django 2.0.2 on 2018-08-29 11:23 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('news', '0005_newsprojectrelatedpage'), + ] + + operations = [ + migrations.AddField( + model_name='newspage', + name='drupal_id', + field=models.IntegerField(blank=True, editable=False, null=True), + ), + ] diff --git a/opentech/public/news/models.py b/opentech/public/news/models.py index 845abc50bde2ae63374c63b6177a3a0f1f63f779..d57f6f118794111b7faaf5d3be171c59b4fa53b2 100644 --- a/opentech/public/news/models.py +++ b/opentech/public/news/models.py @@ -90,6 +90,8 @@ class NewsPage(BasePage): subpage_types = [] parent_page_types = ['NewsIndex'] + drupal_id = models.IntegerField(null=True, blank=True, editable=False) + # It's datetime for easy comparison with first_published_at publication_date = models.DateTimeField( null=True, blank=True, diff --git a/opentech/public/projects/migrations/0005_projectpage_drupal_id.py b/opentech/public/projects/migrations/0005_projectpage_drupal_id.py new file mode 100644 index 0000000000000000000000000000000000000000..adb05539c624a676b1409ad752f128a28b851ee5 --- /dev/null +++ b/opentech/public/projects/migrations/0005_projectpage_drupal_id.py @@ -0,0 +1,18 @@ +# Generated by Django 2.0.2 on 2018-08-29 11:23 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('projects', '0004_projectpage_categories'), + ] + + operations = [ + migrations.AddField( + model_name='projectpage', + name='drupal_id', + field=models.IntegerField(blank=True, editable=False, null=True), + ), + ] diff --git a/opentech/public/projects/models.py b/opentech/public/projects/models.py index 5dc745f13f6722d1b5c88a76aed646d69565411f..b1dcc115704aa5f2063a0a47c34e4a859af8baa7 100644 --- a/opentech/public/projects/models.py +++ b/opentech/public/projects/models.py @@ -99,6 +99,8 @@ class ProjectPage(FundingMixin, BasePage): subpage_types = [] parent_page_types = ['ProjectIndexPage'] + drupal_id = models.IntegerField(null=True, blank=True, editable=False) + introduction = models.TextField(blank=True) icon = models.ForeignKey( 'images.CustomImage',