Skip to content
This repository has been archived by the owner on Jun 18, 2024. It is now read-only.

Commit

Permalink
Fix migrations for two different PRs (see comment on #115)
Browse files Browse the repository at this point in the history
  • Loading branch information
tm-kn committed Aug 10, 2017
1 parent 6679919 commit 554dae0
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def move_area_data(apps, schema_editor):

for staff in records:
first_role = staff.roles.filter(area__isnull=True).first()

# Update revisions
if staff.has_unpublished_changes:
# Can't use get_latest_revision() as I am unable to call
Expand All @@ -40,7 +40,7 @@ def move_area_data(apps, schema_editor):

revision.content_json = json.dumps(revision_json)
revision.save()

if first_role is not None:
print('Updating live version of {} (#{}).'.format(staff, staff.pk))

Expand All @@ -51,6 +51,7 @@ def move_area_data(apps, schema_editor):
class Migration(migrations.Migration):
dependencies = [
('rca', '0087_doubleclickcampaignmanageractivities'),
('taxonomy', '0022_move_area_content_types'),
]

operations = [
Expand Down

0 comments on commit 554dae0

Please sign in to comment.