Skip to content
Snippets Groups Projects
Commit 001df8a5 authored by Todd Dembrey's avatar Todd Dembrey Committed by Fredrik Jonsson
Browse files

Add drupal_ids for imported types

parent 855d087b
No related branches found
No related tags found
No related merge requests found
# 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),
),
]
......@@ -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,
......
# 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),
),
]
......@@ -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',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment