Skip to content

Instantly share code, notes, and snippets.

@beniwohli
Created October 18, 2012 07:58
Show Gist options
  • Save beniwohli/3910351 to your computer and use it in GitHub Desktop.
Save beniwohli/3910351 to your computer and use it in GitHub Desktop.
# -*- 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