nomike / Bauteilsortiment

Django based software for managing an electronics component library
GNU General Public License v3.0
2 stars 3 forks source link

Sublist fields can't have arbitrary names #2

Closed nomike closed 1 year ago

nomike commented 1 year ago

If you want to see the child ComponentTypes of ComponentTypes as a sub-list in the detail view, this currently does not work.

The error message you get is

FieldError at /bts/m/ComponentType/filtered/ComponentType/2 Cannot resolve keyword 'component_type' into field. Choices are: componenttype, id, name, parent, parent_id, subcomponent

This is due to the relation field being called "parent" and not "component_type".

Support for arbitrary names in sublist fields needs to be added.