From 690341f74c17784f47846fa50cc555e1578b4a7f Mon Sep 17 00:00:00 2001 From: Simon Willison Date: Tue, 8 Jun 2021 16:02:52 -0700 Subject: [PATCH] Micro-optimization refs #646 --- vaccinate/api/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vaccinate/api/views.py b/vaccinate/api/views.py index 5b77887..b88475b 100644 --- a/vaccinate/api/views.py +++ b/vaccinate/api/views.py @@ -299,7 +299,7 @@ def import_source_locations(request, on_request_logged): if safe_to_match and matched_location is not None: source_location.matched_location = matched_location - source_location.save() + source_location.save(update_fields=["matched_location"]) import_json = record.import_json links = list(import_json.links) if import_json.links is not None else []