diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2022-05-16 18:28:37 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2022-07-08 09:58:50 +0200 |
commit | c3102b11e4d20a008e6be81ddd5d1b8d4309be22 (patch) | |
tree | 516d4c8fd2a97bef665b37b7d71149988d2947d7 /ishtar_common/forms_common.py | |
parent | 1278dde057a343d6c09e829e43b66e8a95840910 (diff) | |
download | Ishtar-c3102b11e4d20a008e6be81ddd5d1b8d4309be22.tar.bz2 Ishtar-c3102b11e4d20a008e6be81ddd5d1b8d4309be22.zip |
Generate preview image for PDF
Diffstat (limited to 'ishtar_common/forms_common.py')
-rw-r--r-- | ishtar_common/forms_common.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ishtar_common/forms_common.py b/ishtar_common/forms_common.py index 572c1b70a..57efa72cd 100644 --- a/ishtar_common/forms_common.py +++ b/ishtar_common/forms_common.py @@ -1716,7 +1716,7 @@ class DocumentForm(forms.ModelForm, CustomForm, ManageOldType): def clean_source_page_range(self): value = self.cleaned_data.get("source_page_range", None).replace(" ", "") - if value and not re.match(r"^(\d+[-;]*\d)+$", value): + if value and not re.match(r"^(\d+[-;]*\d*)+$", value): raise forms.ValidationError(_("Incorrect page range.")) return value |