mirror of
https://github.com/inventree/InvenTree.git
synced 2025-04-29 20:16:44 +00:00
Copy across default tags when creating a new part
This commit is contained in:
parent
0842bd5833
commit
d1de6eb1f9
@ -339,7 +339,9 @@ class PartCreate(AjaxCreateView):
|
||||
|
||||
if self.get_category_id():
|
||||
try:
|
||||
initials['category'] = PartCategory.objects.get(pk=self.get_category_id())
|
||||
category = PartCategory.objects.get(pk=self.get_category_id())
|
||||
initials['category'] = category
|
||||
initials['keywords'] = category.default_keywords
|
||||
except PartCategory.DoesNotExist:
|
||||
pass
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user