diff --git a/InvenTree/part/templates/part/category.html b/InvenTree/part/templates/part/category.html index 70d4bd6246..8e999ea96c 100644 --- a/InvenTree/part/templates/part/category.html +++ b/InvenTree/part/templates/part/category.html @@ -1,6 +1,6 @@ {# Construct the category path #} Category/ -{% for path_item in category.path %} +{% for path_item in category.parentpath %} {{ path_item.name }}/ {% endfor %} diff --git a/InvenTree/project/admin.py b/InvenTree/project/admin.py index 081d29b9f9..f266fb3612 100644 --- a/InvenTree/project/admin.py +++ b/InvenTree/project/admin.py @@ -3,7 +3,7 @@ from django.contrib import admin from .models import ProjectCategory, Project, ProjectPart class ProjectCategoryAdmin(admin.ModelAdmin): - list_display = ('name','path') + list_display = ('name', 'path', 'description') class ProjectAdmin(admin.ModelAdmin): list_display = ('name', 'description', 'category')