[views] Hide no-value label for file_category
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Tue, 17 Oct 2017 18:09:30 +0200
changeset 2782 5f1d7de7a9cb
parent 2781 f296b2c489d0
child 2783 0a2798f4f38f
[views] Hide no-value label for file_category consistently with other fields
cubicweb_seda/views/dataobject.py
--- a/cubicweb_seda/views/dataobject.py	Tue Oct 17 18:08:49 2017 +0200
+++ b/cubicweb_seda/views/dataobject.py	Tue Oct 17 18:09:30 2017 +0200
@@ -235,6 +235,8 @@
 
 affk.tag_subject_of(('SEDABinaryDataObject', 'file_category', '*'),
                     {'choices': file_category_vocabulary})
+rec.tag_subject_of(('SEDABinaryDataObject', 'file_category', '*'),
+                   {'novalue_label': ' '})
 
 
 class BinaryDataObjectFileInfoTab(viewlib.PrimaryTabWithoutBoxes):