mirror of
https://github.com/inventree/InvenTree.git
synced 2025-07-09 07:00:56 +00:00
Adds extra subsctiption functionality for Part and PartCategory
- Allows variants and templates - Allows categories and sub-categories - Unit testing
This commit is contained in:
@ -420,7 +420,7 @@ class PartDetail(generics.RetrieveUpdateDestroyAPIView):
|
||||
if 'starred' in request.data:
|
||||
starred = str2bool(request.data.get('starred', None))
|
||||
|
||||
self.get_object().setStarred(request.user, starred)
|
||||
self.get_object().set_subscription(request.user, starred)
|
||||
|
||||
response = super().update(request, *args, **kwargs)
|
||||
|
||||
|
Reference in New Issue
Block a user