From 8435f3c1a23bc07a94f0f132ae519803b3c4f075 Mon Sep 17 00:00:00 2001 From: Roberto Rosario Date: Fri, 3 Aug 2012 20:08:41 -0400 Subject: [PATCH] Rename AutoAdminSingleton manager name --- apps/common/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/common/__init__.py b/apps/common/__init__.py index de191880ff..2739cee8ad 100644 --- a/apps/common/__init__.py +++ b/apps/common/__init__.py @@ -67,7 +67,7 @@ def create_superuser(sender, **kwargs): @receiver(post_save, dispatch_uid='auto_admin_account_passwd_change', sender=User) def auto_admin_account_passwd_change(sender, instance, **kwargs): - auto_admin_properties = AutoAdminSingleton.objects.get() + auto_admin_properties = AutoAdminSingleton.singleton.get() if instance == auto_admin_properties.account and instance.password != auto_admin_properties.password_hash: # Only delete the auto admin properties when the password has been changed auto_admin_properties.delete(force=True)