Simplify code

This commit is contained in:
Oliver Walters 2026-07-02 12:43:31 +00:00
parent 3303e4664f
commit 669ca7ef82
1 changed files with 1 additions and 6 deletions

View File

@ -950,6 +950,7 @@ class PartSerializer(
Part.objects.all(),
label=_('Duplicate Part'),
help_text=_('Copy initial data from another Part'),
copy_parameters=True,
copy_fields=[
{
'name': 'copy_image',
@ -963,12 +964,6 @@ class PartSerializer(
'help_text': _('Copy bill of materials from original part'),
'default': False,
},
{
'name': 'copy_parameters',
'label': _('Copy Parameters'),
'help_text': _('Copy parameter data from original part'),
'default': False,
},
{
'name': 'copy_notes',
'label': _('Copy Notes'),