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")
|
||||
|
||||
# check if resolution exists
|
||||
if resolution != "":
|
||||
try:
|
||||
Resolution.objects.get(id=resolution)
|
||||
except:
|
||||
|
||||
Reference in New Issue
Block a user