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

Add migration and new field for images

parent 59e17b9e
No related branches found
No related tags found
No related merge requests found
# Generated by Django 2.0.2 on 2018-08-29 12:04
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('images', '0002_customimage_file_hash'),
]
operations = [
migrations.AddField(
model_name='customimage',
name='drupal_id',
field=models.IntegerField(blank=True, editable=False, null=True),
),
]
...@@ -9,6 +9,8 @@ from wagtail.images.models import ( ...@@ -9,6 +9,8 @@ from wagtail.images.models import (
# We define our own custom image class to replace wagtailimages.Image, # We define our own custom image class to replace wagtailimages.Image,
# providing various additional data fields # providing various additional data fields
class CustomImage(AbstractImage): class CustomImage(AbstractImage):
drupal_id = models.IntegerField(null=True, blank=True, editable=False)
alt = models.CharField(max_length=255, blank=True) alt = models.CharField(max_length=255, blank=True)
credit = models.CharField(max_length=255, blank=True) credit = models.CharField(max_length=255, blank=True)
......
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