Simplify code
This commit is contained in:
parent
3303e4664f
commit
669ca7ef82
|
|
@ -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'),
|
||||
|
|
|
|||
Loading…
Reference in New Issue