mirror of
https://github.com/inventree/InvenTree.git
synced 2026-10-29 04:37:53 +00:00
Fixed part display bug
This commit is contained in:
1 parent
155151e98b
commit
6aa9f14b46
2 files changed
+2
-2
No files matched your search
@@ -1,6 +1,6 @@
|
||||
{# Construct the category path #}
|
||||
<a href="../">Category</a>/
|
||||
{% for path_item in category.path %}
|
||||
{% for path_item in category.parentpath %}
|
||||
<a href="../{{ path_item.pk }}">{{ path_item.name }}</a>/
|
||||
{% endfor %}
|
||||
|
||||
|
||||
@@ -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')
|
||||
|
||||
Reference in new issue
Block a user