summaryrefslogtreecommitdiff
path: root/archaeological_context_records
diff options
context:
space:
mode:
Diffstat (limited to 'archaeological_context_records')
-rw-r--r--archaeological_context_records/forms.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/archaeological_context_records/forms.py b/archaeological_context_records/forms.py
index 24a94f2f5..6ebd168a6 100644
--- a/archaeological_context_records/forms.py
+++ b/archaeological_context_records/forms.py
@@ -129,6 +129,8 @@ class PeriodSelect(forms.Form):
fields[key] = self.fields[key]
if key == insert_period_after:
for period_key in self.PERIOD_FIELDS:
+ if period_key not in fields:
+ continue
fields[period_key] = self.fields[period_key]
self.fields = fields