mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Fixed part display bug
This commit is contained in:
parent
155151e98b
commit
6aa9f14b46
@ -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')
|
||||
|
Loading…
Reference in New Issue
Block a user