From 509b3d2364985938279930244e741e0b8609db1f Mon Sep 17 00:00:00 2001 From: LeandroRoberto Date: Thu, 27 Oct 2016 13:25:26 -0200 Subject: [PATCH] Corrige post_migrate geral de inc de list e detail --- sapl/base/apps.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/sapl/base/apps.py b/sapl/base/apps.py index 0ca7a90cd..a4f826433 100644 --- a/sapl/base/apps.py +++ b/sapl/base/apps.py @@ -3,7 +3,7 @@ from builtins import LookupError from django.apps import apps from django.contrib.auth.management import _get_all_permissions from django.core import exceptions -from django.db import router +from django.db import router, models from django.db.models.signals import pre_migrate, post_migrate from django.db.utils import DEFAULT_DB_ALIAS from django.utils.translation import string_concat @@ -109,7 +109,7 @@ class AppConfig(django.apps.AppConfig): def ready(self): #pre_migrate.connect(run_sql_organizers, self) - - post_migrate.connect( - receiver=create_proxy_permissions, - dispatch_uid="django.contrib.auth.management.create_permissions") + pass +models.signals.post_migrate.connect( + receiver=create_proxy_permissions, + dispatch_uid="django.contrib.auth.management.create_permissions")