allow creating a bill without resolution

This commit is contained in:
2023-10-27 09:29:40 +00:00
parent b12e7d8f16
commit 1c6c850689

View File

@@ -103,6 +103,7 @@ class BillCreateForm(forms.ModelForm):
file_field = cleaned_data.get("file_field") file_field = cleaned_data.get("file_field")
# check if resolution exists # check if resolution exists
if resolution != "":
try: try:
Resolution.objects.get(id=resolution) Resolution.objects.get(id=resolution)
except: except: