mirror of
https://github.com/nikdoof/test-auth.git
synced 2025-12-18 04:09:29 +00:00
Removed a few debug print statements that are no longer needed
This commit is contained in:
@@ -36,8 +36,6 @@ def UserServiceAccountForm(user):
|
||||
services = Service.objects.filter(groups__in=user.groups.all(),active=1).exclude(id__in=ServiceAccount.objects.filter(user=user).values('service')).distinct()
|
||||
chars = EVEPlayerCharacter.objects.filter(eveaccount__user=user)
|
||||
|
||||
print len(services)
|
||||
|
||||
class ServiceAccountForm(forms.Form):
|
||||
""" Service Account Form """
|
||||
|
||||
|
||||
@@ -68,9 +68,7 @@ class SSOUser(models.Model):
|
||||
# Generate the list of groups to add/remove
|
||||
delgroups = set(set(self.user.groups.all()) & set(corpgroups)) - set(chargroups)
|
||||
addgroups = set(chargroups) - set(set(self.user.groups.all()) & set(corpgroups))
|
||||
|
||||
print "Add: ", addgroups, "Del:", delgroups, "Current:", self.user.groups.all()
|
||||
|
||||
|
||||
for g in delgroups:
|
||||
self.user.groups.remove(g)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user