Remove 'id' as a writable field

This commit is contained in:
Charles Haley 2011-03-07 19:09:30 +00:00
parent 568ac2a2d1
commit 89282d6de6

View File

@ -363,8 +363,9 @@ class MetadataBulkDialog(ResizableDialog, Ui_MetadataBulkDialog):
if (f in ['author_sort'] or
(fm[f]['datatype'] in ['text', 'series', 'enumeration']
and fm[f].get('search_terms', None)
and f not in ['formats', 'ondevice', 'id']) or
fm[f]['datatype'] in ['int', 'float', 'bool'] ):
and f not in ['formats', 'ondevice']) or
(fm[f]['datatype'] in ['int', 'float', 'bool'] and
f not in ['id'])):
self.all_fields.append(f)
self.writable_fields.append(f)
if fm[f]['datatype'] == 'composite':