Commit da7bcdb3 authored by Patrick Kimber's avatar Patrick Kimber

Use 'get_consent' method (so the exception message is clear)

parent 5c5adb1c
Pipeline #23619754 passed with stage
in 1 minute and 21 seconds
......@@ -16,7 +16,7 @@ class EnquiryCreateMixin:
model = Enquiry
def _consent(self):
return Consent.objects.get(slug=Enquiry.GDPR_CONTACT_SLUG)
return Consent.objects.get_consent(Enquiry.GDPR_CONTACT_SLUG)
def form_valid(self, form):
"""Do the form save within a transaction."""
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment