aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFilipp Lepalaan <filipp@mac.com>2016-11-02 12:12:32 +0200
committerFilipp Lepalaan <filipp@mac.com>2016-11-02 12:12:32 +0200
commitf5b69467d197e1139e4fdb06b82de54f993b3f33 (patch)
treeead5067836a7ca7721633579ee253bfbfff67213
parent937dc1fd0c74b2d53c53a20fdb7c84e9c4b73b5f (diff)
downloadServo-f5b69467d197e1139e4fdb06b82de54f993b3f33.tar.gz
Servo-f5b69467d197e1139e4fdb06b82de54f993b3f33.tar.bz2
Servo-f5b69467d197e1139e4fdb06b82de54f993b3f33.zip
Cleanup
-rw-r--r--__init__.py16
1 files changed, 0 insertions, 16 deletions
diff --git a/__init__.py b/__init__.py
deleted file mode 100644
index 74b4ba7..0000000
--- a/__init__.py
+++ /dev/null
@@ -1,16 +0,0 @@
-# register a signal do update permissions every migration.
-# This is based on app django_extensions update_permissions command
-from south.signals import post_migrate
-
-def update_permissions_after_migration(app, **kwargs):
- """
- Update app permission just after every migration.
- This is based on app django_extensions update_permissions management command.
- """
- from django.conf import settings
- from django.db.models import get_app, get_models
- from django.contrib.auth.management import create_permissions
-
- create_permissions(get_app(app), get_models(), 2 if settings.DEBUG else 0)
-
-post_migrate.connect(update_permissions_after_migration)