updated required_on_activate error message
Change-Id: I5757502995a440b3582d69540c4818a00ad29d4a
This commit is contained in:
parent
aeccc16a7c
commit
ef042bf4e7
@ -554,7 +554,7 @@ def validate_status_transition(af, from_status, to_status):
|
|||||||
for name, type_obj in af.fields.items():
|
for name, type_obj in af.fields.items():
|
||||||
if type_obj.required_on_activate and getattr(af, name) is None:
|
if type_obj.required_on_activate and getattr(af, name) is None:
|
||||||
if isinstance(type_obj, BlobField):
|
if isinstance(type_obj, BlobField):
|
||||||
msg = _("%s' must be available before "
|
msg = _("'%s' must be available before "
|
||||||
"activation.") % name
|
"activation.") % name
|
||||||
else:
|
else:
|
||||||
msg = _("'%s' field value must be set before "
|
msg = _("'%s' field value must be set before "
|
||||||
|
Loading…
Reference in New Issue
Block a user