From ffd47c28bd7288a88745964a2031e61d991b0364 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Fri, 27 May 2022 08:30:27 +0200 Subject: OA prefix: fix customize on sheet, form and save --- archaeological_context_records/models.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'archaeological_context_records/models.py') diff --git a/archaeological_context_records/models.py b/archaeological_context_records/models.py index 870a10046..d143ddd09 100644 --- a/archaeological_context_records/models.py +++ b/archaeological_context_records/models.py @@ -914,8 +914,8 @@ class ContextRecord( WHERE {where} ); """.format( - main_ope_prefix=profile.operation_prefix, - ope_prefix=profile.default_operation_prefix, + main_ope_prefix=(profile.operation_prefix or ""), + ope_prefix=(profile.default_operation_prefix or ""), join=settings.JOINT, where=where, ) -- cgit v1.2.3