Created
October 18, 2012 07:58
-
-
Save beniwohli/3910351 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
from django.core.management.commands import loaddata | |
from django.db.models import signals | |
class Command(loaddata.Command): | |
def handle(self, *fixture_labels, **options): | |
from cms.signals import update_placeholders | |
from cms.models import Page | |
signals.post_save.disconnect(update_placeholders, sender=Page) | |
loaddata.Command.handle(self, *fixture_labels, **options) | |
signals.post_save.connect(update_placeholders, sender=Page) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment