Skip to content

Commit

Permalink
Missed change
Browse files Browse the repository at this point in the history
  • Loading branch information
Ahmed Belal committed May 30, 2019
1 parent 1d5b7ab commit 005b9bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cms/migrations/0030_setup_catalog_page.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ def remove_catalog_page(apps, schema_editor):
Remove the catalog page
"""
ContentType = apps.get_model("contenttypes.ContentType")
catalog_content_type = ContentType.objects.get_or_create(app_label="cms", model="catalogpage")
catalog_content_type, _ = ContentType.objects.get_or_create(app_label="cms", model="catalogpage")
catalog = Page.objects.get(content_type_id=catalog_content_type.id)
if catalog:
catalog.delete()
Expand Down

0 comments on commit 005b9bf

Please sign in to comment.