Skip to content

Commit

Permalink
Added Django 1.7 migration for focal point blank=True. Fixes wagtail#664
Browse files Browse the repository at this point in the history
  • Loading branch information
kaedroho committed Oct 3, 2014
1 parent c3b4bb2 commit af436e9
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions wagtail/wagtailimages/migrations/0003_fix_focal_point_fields.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# -*- coding: utf-8 -*-
from __future__ import unicode_literals

from django.db import models, migrations


class Migration(migrations.Migration):
"""
When the initial migration was created, the focal point fields on image
did not have blank=True set.
This migration fixes this.
"""

dependencies = [
('wagtailimages', '0002_initial_data'),
]

operations = [
migrations.AlterField(
model_name='image',
name='focal_point_height',
field=models.PositiveIntegerField(null=True, blank=True),
),
migrations.AlterField(
model_name='image',
name='focal_point_width',
field=models.PositiveIntegerField(null=True, blank=True),
),
migrations.AlterField(
model_name='image',
name='focal_point_x',
field=models.PositiveIntegerField(null=True, blank=True),
),
migrations.AlterField(
model_name='image',
name='focal_point_y',
field=models.PositiveIntegerField(null=True, blank=True),
),
]

0 comments on commit af436e9

Please sign in to comment.