Bug fix for part category view (#3119)

This commit is contained in:
Oliver 2022-06-03 00:14:36 +10:00 committed by GitHub
parent e8bf35585a
commit 5fef6563d8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -981,7 +981,7 @@ class CategoryDetail(InvenTreeRoleMixin, InvenTreePluginViewMixin, DetailView):
if category:
# Insert "starred" information
context['starred_directly'] = context['starred'] and category.is_starred_by(
context['starred_directly'] = category.is_starred_by(
self.request.user,
include_parents=False,
)