Add financial form prop to check if the missing TO is the only error
This commit is contained in:
parent
fdedab817b
commit
8ac5a7e3b0
@ -151,6 +151,11 @@ class FinancialForm(BaseFinancialForm):
|
|||||||
def is_missing_task_order_number(self):
|
def is_missing_task_order_number(self):
|
||||||
return "task_order_number" in self.errors
|
return "task_order_number" in self.errors
|
||||||
|
|
||||||
|
@property
|
||||||
|
def is_only_missing_task_order_number(self):
|
||||||
|
return "task_order_number" in self.errors and len(self.errors) == 1
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
class ExtendedFinancialForm(BaseFinancialForm):
|
class ExtendedFinancialForm(BaseFinancialForm):
|
||||||
def validate(self, *args, **kwargs):
|
def validate(self, *args, **kwargs):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user