2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-07-12 07:54:14 +00:00

Display 'starred' status on the Part information page

This commit is contained in:
Oliver Walters
2019-05-05 10:54:21 +10:00
parent b2e935382b
commit bbd164407f
3 changed files with 16 additions and 1 deletions

View File

@ -232,6 +232,10 @@ class PartDetail(DetailView):
else:
context['editing_enabled'] = 0
part = self.get_object()
context['starred'] = part.isStarredBy(self.request.user)
return context