@@ -0,0 +1,808 @@
+# Apparently South has some problems with upgrading permissions. The%0A# following piece of code hooks into the migrations and recreates the%0A# permissions. See also%0A# http://stackoverflow.com/questions/1742021/adding-new-custom-permissions-in-django/11914435#11914435%0A%0Afrom south.signals import post_migrate%0A%0Adef update_permissions_after_migration(app,**kwargs):%0A    %22%22%22%0A    Update app permission just after every migration.%0A    This is based on app django_extensions update_permissions management command.%0A    %22%22%22%0A    from django.conf import settings%0A    from django.db.models import get_app, get_models%0A    from django.contrib.auth.management import create_permissions%0A%0A    create_permissions(get_app(app), get_models(), 2 if settings.DEBUG else 0)%0A%0Apost_migrate.connect(update_permissions_after_migration)%0A%0A

Add a hack to work around a problem with South and permissions