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:
@ -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
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user