From 003d8ece56cd8a21e4c908b705af383c146f213d Mon Sep 17 00:00:00 2001 From: Sean Batzel Date: Tue, 11 May 2021 16:06:13 -0400 Subject: [PATCH] Quick typo fix. Yikes. --- main/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main/models.py b/main/models.py index 37c85ca8..dcfdf39d 100644 --- a/main/models.py +++ b/main/models.py @@ -180,7 +180,7 @@ def __str__(self): def cal_key(fk): present_keys = Patient.objects.filter(campaign=fk).order_by('-campaign_key').values_list('campaign_key', flat=True) - if present_keys and presnet_keys[0] is not None: + if present_keys and present_keys[0] is not None: return present_keys[0] + 1 else: return 0