From a3309c79db00c40f0e10dc7270ca8a9c0b2d7404 Mon Sep 17 00:00:00 2001 From: Jon Massey Date: Thu, 20 Oct 2022 15:24:07 +0000 Subject: [PATCH] fix: lowercase ampp --- openprescribing/dmd/search.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openprescribing/dmd/search.py b/openprescribing/dmd/search.py index 18ca2feef7..dd983cf6ff 100644 --- a/openprescribing/dmd/search.py +++ b/openprescribing/dmd/search.py @@ -68,7 +68,7 @@ def search_by_gtin(q): return [] try: - obj = GTIN.objects.select_related("AMPP").get(gtin=q) + obj = GTIN.objects.select_related("ampp").get(gtin=q) except AMPP.DoesNotExist: return []