[organization] Workaround creating org of sample user on first login
@@ -307,6 +307,9 @@ class AllowFirstUserDjangoBackend(django.contrib.auth.backends.ModelBackend):
def is_first_login_ever(self):
""" Return true if no one has ever logged in."""
+ if ENABLE_ORGANIZATIONS.get(): # Tmp
+ return False
+ else:
return User.objects.exclude(id=install_sample_user().id).count() == 0
