you can't filter a queryset on a property. derp.
@@ -28,8 +28,9 @@ class EZProxyAuth(View):
raise SuspiciousOperation("Missing Editor username.")
try:
- authorizations = Authorization.objects.filter(authorized_user=request.user, is_valid=True)
+ authorizations = Authorization.objects.filter(authorized_user=request.user)
for authorization in authorizations:
+ if authorization.is_valid:
partner = Partner.objects.get(authorization_method=Partner.PROXY, pk=authorization.partner_id)
group = ""
if partner and partner.proxy_enabled:
