mirror of
https://github.com/netbox-community/netbox.git
synced 2025-09-06 14:23:36 -06:00
#19891: Fix duplicate background_job fields on bulk edit forms without fieldsets defined
This commit is contained in:
parent
d8b935e0ec
commit
fc8ee27f86
@ -19,6 +19,15 @@ class BackgroundJobMixin(forms.Form):
|
|||||||
required=False,
|
required=False,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
def __init__(self, *args, **kwargs):
|
||||||
|
super().__init__(*args, **kwargs)
|
||||||
|
|
||||||
|
# Declare background_job a meta field
|
||||||
|
if hasattr(self, 'meta_fields'):
|
||||||
|
self.meta_fields.append('background_job')
|
||||||
|
else:
|
||||||
|
self.meta_fields = ['background_job']
|
||||||
|
|
||||||
|
|
||||||
class CheckLastUpdatedMixin(forms.Form):
|
class CheckLastUpdatedMixin(forms.Form):
|
||||||
"""
|
"""
|
||||||
|
Loading…
Reference in New Issue
Block a user