ezproxy will simple get() the partner referenced in the authorization since proxy auths should only ever have one partner
@@ -50,7 +50,7 @@ class EZProxyAuth(ToURequired, View):
authorization.is_valid
and authorization.get_authorization_method() == Partner.PROXY
):
- group = "P" + repr(authorization.partners.first().pk)
+ group = "P" + repr(authorization.partners.get().pk)
if authorization.stream:
group += "S" + repr(authorization.stream_id)
groups.append(group)
