mirror of
https://github.com/nikdoof/test-auth.git
synced 2025-12-14 14:52:15 +00:00
Small speedup for the update_access function
This commit is contained in:
@@ -50,7 +50,7 @@ class SSOUser(models.Model):
|
|||||||
self._log.debug("Update - User %s" % self.user)
|
self._log.debug("Update - User %s" % self.user)
|
||||||
# Create a list of all Corp groups
|
# Create a list of all Corp groups
|
||||||
corpgroups = []
|
corpgroups = []
|
||||||
for corp in EVEPlayerCorporation.objects.all():
|
for corp in EVEPlayerCorporation.objects.filter(group__isnull=False):
|
||||||
if corp.group:
|
if corp.group:
|
||||||
corpgroups.append(corp.group)
|
corpgroups.append(corp.group)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user