Make sure lookup selection widgets also trigger the
metadata update checkbox on change. Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com>
This commit is contained in:
@@ -28,6 +28,10 @@ Other Changes
|
||||
- Reduce verbosity of some debug messages.
|
||||
- New lineart transformation. Useful to increase the OCR accuracy on some kind
|
||||
of documents.
|
||||
- Make sure lookup selection widgets also trigger the metadata update
|
||||
checkbox on change.
|
||||
|
||||
|
||||
|
||||
Removals
|
||||
--------
|
||||
|
||||
@@ -67,6 +67,9 @@ class DocumentMetadataForm(forms.Form):
|
||||
choices.insert(0, ('', '------'))
|
||||
self.fields['value'].choices = choices
|
||||
self.fields['value'].required = required
|
||||
self.fields['value'].widget.attrs.update(
|
||||
{'class': 'metadata-value'}
|
||||
)
|
||||
except Exception as exception:
|
||||
self.fields['value'].initial = _(
|
||||
'Lookup value error: %s'
|
||||
|
||||
Reference in New Issue
Block a user