Allow import of part images (#6513)

- Remove "readonly" attribute from image field
- Ref: https://github.com/inventree/InvenTree/issues/6511
This commit is contained in:
Oliver 2024-02-19 12:47:25 +11:00 committed by GitHub
parent 5f3932b7e1
commit 7dab02555d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -57,7 +57,7 @@ class PartResource(InvenTreeResource):
attribute='units', column_name=_('Units'), widget=widgets.CharWidget()
)
notes = Field(attribute='notes', column_name=_('Notes'))
image = Field(attribute='image', column_name=_('Part Image'), readonly=True)
image = Field(attribute='image', column_name=_('Part Image'))
category = Field(
attribute='category',
column_name=_('Category ID'),