Convert InventoryItem's parent field to an MPTTField #1846
Labels
status: accepted
This issue has been accepted for implementation
type: housekeeping
Changes to the application which do not directly impact the end user
Milestone
Issue type
[x] Feature request
[ ] Bug report
[ ] Documentation
Environment
Description
The
parent
field of an InventoryItem is used to arrange items hierarchically within a Device. For example:Currently, the
parent
field is a recursive ForeignKey, which does not allow for intelligent hierarchical ordering. We can change this to an MPTTField (like on the Region model) to greatly improve ordering and allow for more efficient queries.The text was updated successfully, but these errors were encountered: