- try:
- agreement = BillingAgreementModel.objects.get(user=user)
- except BillingAgreementModel.DoesNotExist:
- return False
- return agreement.check_agreement()
+ agreements = BillingAgreementModel.objects.filter(user=user)
+ return any(agreement.check_agreement() for agreement in agreements)