mirror of
https://github.com/inventree/InvenTree.git
synced 2025-04-28 19:46:46 +00:00
Fixed part display bug
This commit is contained in:
parent
155151e98b
commit
6aa9f14b46
@ -1,6 +1,6 @@
|
|||||||
{# Construct the category path #}
|
{# Construct the category path #}
|
||||||
<a href="../">Category</a>/
|
<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>/
|
<a href="../{{ path_item.pk }}">{{ path_item.name }}</a>/
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
||||||
|
@ -3,7 +3,7 @@ from django.contrib import admin
|
|||||||
from .models import ProjectCategory, Project, ProjectPart
|
from .models import ProjectCategory, Project, ProjectPart
|
||||||
|
|
||||||
class ProjectCategoryAdmin(admin.ModelAdmin):
|
class ProjectCategoryAdmin(admin.ModelAdmin):
|
||||||
list_display = ('name','path')
|
list_display = ('name', 'path', 'description')
|
||||||
|
|
||||||
class ProjectAdmin(admin.ModelAdmin):
|
class ProjectAdmin(admin.ModelAdmin):
|
||||||
list_display = ('name', 'description', 'category')
|
list_display = ('name', 'description', 'category')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user