streamline get_all_bundle_authorizations
@@ -8,14 +8,8 @@ def get_all_bundle_authorizations():
"""
Returns all Bundle authorizations, both active
and not.
- If no authorizations are found, returns None.
"""
- auths = Authorization.objects.filter(
+ return Authorization.objects.filter(
partners__authorization_method=Partner.BUNDLE
).distinct()
-
- if auths.exists():
- return auths
- else:
- return None
