Add support to the ObjectActionMixin to report on instance action failures. Add also an error_message class property and the new ActionError exception.
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com>
This commit is contained in:
@@ -8,6 +8,14 @@ class BaseCommonException(Exception):
|
||||
pass
|
||||
|
||||
|
||||
class ActionError(BaseCommonException):
|
||||
"""
|
||||
Raise by the MultiActionConfirmView to announce when the object action
|
||||
failed for one or more items. This exception doesn't stop the iteration,
|
||||
it is used to announce that one item in the queryset failed to process.
|
||||
"""
|
||||
|
||||
|
||||
class NotLatestVersion(BaseCommonException):
|
||||
"""
|
||||
The installed version is not the latest available version
|
||||
|
||||
Reference in New Issue
Block a user