Small speedup for the update_access function

This commit is contained in:
2010-04-06 00:03:57 +01:00
parent 34d5960110
commit d05f73f99e

View File

@@ -50,7 +50,7 @@ class SSOUser(models.Model):
self._log.debug("Update - User %s" % self.user)
# Create a list of all Corp groups
corpgroups = []
for corp in EVEPlayerCorporation.objects.all():
for corp in EVEPlayerCorporation.objects.filter(group__isnull=False):
if corp.group:
corpgroups.append(corp.group)