Fix cache evaluation

This commit is contained in:
Roberto Rosario
2012-10-12 03:35:26 -04:00
parent 0b4459bc70
commit dbe15347f8

View File

@@ -27,7 +27,7 @@ class RegistrationSingleton(Singleton):
@classmethod
def registration_state(cls):
if cls._registered:
if cls._registered is not None:
return cls._registered
else:
instance = cls.objects.get()