allow creating a bill without resolution
This commit is contained in:
@@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user