Skip to content

metadata_url wrong for categories #299

Description

@flborn

When using the python API for retrieving categories the metadata_url is wrong.

inventree.part.PartCategory.MODEL_TYPE=None
inventree.part.PartCategory.metadata_url='metadata/None/1/'

Since the API endpoint 'metadata/category/1/' throws "GenericMetadataView called with invalid model 'category'" I guess the Model Type category is not implemented in the new metadata endpoints.

The old endpoint /part/category/1/metadata/ is still working though.

server info:

InvenTree-Version: 1.3.2
Django Version: 5.2.13
Commit Hash: a60e85b
Commit Date: 2026-05-05
Commit Branch: null
Database: django.db.backends.postgresql
Debug-Mode: False
Deployed using Docker: True
Platform: Linux-6.8.0-111-generic-x86_64-with-glibc2.41
Installer: DOC
Active plugins: [{"name":"InvenTreeBarcode","slug":"inventreebarcode","version":"2.2.0"},{"name":"BOM Exporter","slug":"bom-exporter","version":"1.1.0"},{"name":"InvenTree Exporter","slug":"inventree-exporter","version":"1.0.0"},{"name":"Parameter Exporter","slug":"parameter-exporter","version":"2.0.0"},{"name":"InvenTreeEmailNotifications","slug":"inventree-email-notification","version":"1.0.0"},{"name":"InvenTreeUINotifications","slug":"inventree-ui-notification","version":"1.0.0"},{"name":"InvenTreeCurrencyExchange","slug":"inventreecurrencyexchange","version":"1.0.0"},{"name":"InvenTreeMachines","slug":"inventree-machines","version":"1.0.0"},{"name":"InvenTreeLabel","slug":"inventreelabel","version":"1.1.0"},{"name":"InvenTreeLabelMachine","slug":"inventreelabelmachine","version":"1.0.0"},{"name":"InvenTreeLabelSheet","slug":"inventreelabelsheet","version":"1.0.1"},{"name":"DigiKeyBarcodePlugin","slug":"digikeyplugin","version":"1.0.1"},{"name":"LCSCBarcodePlugin","slug":"lcscplugin","version":"1.0.1"},{"name":"MouserBarcodePlugin","slug":"mouserplugin","version":"1.0.1"},{"name":"TMEBarcodePlugin","slug":"tmeplugin","version":"1.0.1"},{"name":"KiCadLibraryPlugin","slug":"kicad-library-plugin","version":"2.0.3"}]

pip freeze
inventree==0.23.1

Activity

  1. SchrodingersGat commented on May 13, 2026

    @SchrodingersGat
    Member

    @flborn thanks for reporting - fix is incoming in #300

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions