object_actions.py 372 B

123456789101112131415161718
  1. from django.utils.translation import gettext as _
  2. from netbox.object_actions import ObjectAction
  3. __all__ = (
  4. 'BulkSync',
  5. )
  6. class BulkSync(ObjectAction):
  7. """
  8. Synchronize multiple objects at once.
  9. """
  10. name = 'bulk_sync'
  11. label = _('Sync Data')
  12. multi = True
  13. permissions_required = {'sync'}
  14. template_name = 'core/buttons/bulk_sync.html'