From 1db614a3460464d9d373d8cc7ec8106d792029ca Mon Sep 17 00:00:00 2001 From: Roberto Rosario Date: Fri, 18 Jul 2014 19:59:45 -0400 Subject: [PATCH] Don't create stuff on access, registration instance is now only created at post_migrate signal --- mayan/apps/registration/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mayan/apps/registration/models.py b/mayan/apps/registration/models.py index 5955090100..84f34cc1b4 100644 --- a/mayan/apps/registration/models.py +++ b/mayan/apps/registration/models.py @@ -26,7 +26,7 @@ class RegistrationSingleton(SingletonModel): if cls._registered: return cls._registered else: - instance, created = cls.objects.get_or_create() + instance = cls.objects.get() if instance.is_registered: cls._registered = instance.is_registered return instance.is_registered