Fixed part display bug

This commit is contained in:
Oliver Walters 2017-03-28 18:03:55 +11:00
parent 155151e98b
commit 6aa9f14b46
2 changed files with 2 additions and 2 deletions

View File

@ -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 %}

View File

@ -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')