Open
Description
Following #90, valide_unique() needs rewrite:
super()
is not called !- A proper ValidationError is called with NON_FIELD_ERRORS (https://docs.djangoproject.com/en/1.11/ref/exceptions/#non-field-errors) but this key is not reused by management command: it led to inconsistent reporting errors:
addbooks
use ValidationError to report duplicated ebook: it should show real message from exceptionaddepubs
use IntegratyError (and dirty message check) to report duplicated ebook but it cannot detect anymore as Bugfixs #90 force use ofvalidate_unique()
validate_unique()
does not detect fact that user edit book (Editing a book results in apparent error despite the edit succeeding #83)
Note:
validate_unique()
method seems to be called by Forms (to be checked on Django 1.8 and later) and it's why method is called inside management command.
Metadata
Assignees
Labels
No labels