nautobot 2.3.0b1__py3-none-any.whl → 2.3.2__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of nautobot might be problematic. Click here for more details.
- nautobot/cloud/factory.py +2 -0
- nautobot/cloud/filters.py +3 -0
- nautobot/cloud/forms.py +8 -2
- nautobot/cloud/migrations/0001_initial.py +1 -1
- nautobot/cloud/models.py +1 -2
- nautobot/cloud/tables.py +1 -17
- nautobot/cloud/templates/cloud/cloudnetwork_retrieve.html +1 -7
- nautobot/cloud/templates/cloud/cloudresourcetype_retrieve.html +11 -0
- nautobot/cloud/templates/cloud/cloudservice_retrieve.html +4 -0
- nautobot/cloud/tests/test_filters.py +12 -0
- nautobot/cloud/tests/test_views.py +17 -0
- nautobot/cloud/views.py +1 -1
- nautobot/core/celery/__init__.py +5 -2
- nautobot/core/celery/schedulers.py +18 -0
- nautobot/core/filters.py +15 -1
- nautobot/core/forms/forms.py +10 -2
- nautobot/core/graphql/generators.py +2 -2
- nautobot/core/graphql/schema.py +6 -14
- nautobot/core/jobs/__init__.py +4 -1
- nautobot/core/management/commands/generate_test_data.py +2 -2
- nautobot/core/models/__init__.py +2 -2
- nautobot/core/settings.py +13 -2
- nautobot/core/settings.yaml +19 -5
- nautobot/core/tables.py +4 -1
- nautobot/core/templates/generic/object_retrieve.html +6 -6
- nautobot/core/templates/home.html +4 -3
- nautobot/core/templates/inc/computed_fields/panel_data.html +36 -24
- nautobot/core/templates/inc/object_details_advanced_panel.html +1 -1
- nautobot/core/templates/nautobot_config.py.j2 +15 -0
- nautobot/core/templatetags/buttons.py +1 -1
- nautobot/core/testing/filters.py +12 -1
- nautobot/core/tests/integration/test_general_functionality.py +1 -1
- nautobot/core/tests/test_jobs.py +74 -1
- nautobot/core/views/__init__.py +1 -1
- nautobot/core/views/generic.py +1 -1
- nautobot/core/views/mixins.py +1 -1
- nautobot/core/views/utils.py +11 -9
- nautobot/dcim/factory.py +7 -4
- nautobot/dcim/filters/__init__.py +4 -0
- nautobot/dcim/forms.py +24 -0
- nautobot/dcim/migrations/0061_module_models.py +1 -0
- nautobot/dcim/models/device_components.py +7 -0
- nautobot/dcim/models/devices.py +18 -19
- nautobot/dcim/models/racks.py +0 -1
- nautobot/dcim/tables/devices.py +24 -10
- nautobot/dcim/tables/devicetypes.py +1 -1
- nautobot/dcim/templates/dcim/device/base.html +1 -1
- nautobot/dcim/templates/dcim/device.html +15 -3
- nautobot/dcim/templates/dcim/deviceredundancygroup_retrieve.html +6 -0
- nautobot/dcim/templates/dcim/moduletype_retrieve.html +17 -0
- nautobot/dcim/templates/dcim/softwareimagefile_retrieve.html +15 -3
- nautobot/dcim/tests/test_api.py +2 -0
- nautobot/dcim/tests/test_filters.py +14 -7
- nautobot/dcim/tests/test_forms.py +54 -0
- nautobot/dcim/tests/test_models.py +40 -1
- nautobot/dcim/tests/test_views.py +45 -2
- nautobot/dcim/utils.py +9 -6
- nautobot/dcim/views.py +4 -1
- nautobot/extras/api/serializers.py +2 -1
- nautobot/extras/api/views.py +7 -59
- nautobot/extras/factory.py +50 -12
- nautobot/extras/filters/__init__.py +18 -3
- nautobot/extras/forms/base.py +10 -4
- nautobot/extras/forms/forms.py +7 -0
- nautobot/extras/forms/mixins.py +2 -2
- nautobot/extras/homepage.py +12 -2
- nautobot/extras/jobs.py +2 -2
- nautobot/extras/management/__init__.py +3 -0
- nautobot/extras/migrations/0111_metadata.py +4 -4
- nautobot/extras/migrations/0114_computedfield_grouping.py +17 -0
- nautobot/extras/migrations/0115_scheduledjob_time_zone.py +23 -0
- nautobot/extras/models/customfields.py +54 -0
- nautobot/extras/models/jobs.py +105 -9
- nautobot/extras/models/metadata.py +18 -18
- nautobot/extras/models/models.py +2 -0
- nautobot/extras/signals.py +14 -1
- nautobot/extras/tables.py +77 -18
- nautobot/extras/templates/extras/computedfield.html +4 -0
- nautobot/extras/templates/extras/job_detail.html +11 -0
- nautobot/extras/templates/extras/scheduledjob.html +13 -2
- nautobot/extras/tests/test_api.py +33 -27
- nautobot/extras/tests/test_filters.py +57 -1
- nautobot/extras/tests/test_jobs.py +2 -2
- nautobot/extras/tests/test_models.py +319 -19
- nautobot/extras/tests/test_views.py +26 -5
- nautobot/extras/utils.py +35 -6
- nautobot/extras/views.py +35 -51
- nautobot/ipam/api/views.py +9 -2
- nautobot/ipam/choices.py +17 -0
- nautobot/ipam/factory.py +6 -0
- nautobot/ipam/filters.py +2 -2
- nautobot/ipam/forms.py +6 -4
- nautobot/ipam/migrations/0048_vrf_status.py +23 -0
- nautobot/ipam/migrations/0049_vrf_data_migration.py +25 -0
- nautobot/ipam/models.py +11 -20
- nautobot/ipam/querysets.py +26 -0
- nautobot/ipam/tables.py +7 -2
- nautobot/ipam/templates/ipam/vrf.html +4 -0
- nautobot/ipam/templates/ipam/vrf_edit.html +1 -0
- nautobot/ipam/tests/test_api.py +33 -3
- nautobot/ipam/tests/test_models.py +89 -2
- nautobot/ipam/tests/test_views.py +3 -0
- nautobot/ipam/views.py +10 -15
- nautobot/project-static/css/base.css +7 -0
- nautobot/project-static/docs/404.html +18 -18
- nautobot/project-static/docs/apps/index.html +18 -18
- nautobot/project-static/docs/apps/nautobot-apps.html +18 -18
- nautobot/project-static/docs/assets/stylesheets/main.3cba04c6.min.css +1 -0
- nautobot/project-static/docs/assets/stylesheets/main.3cba04c6.min.css.map +1 -0
- nautobot/project-static/docs/code-reference/nautobot/apps/__init__.html +18 -18
- nautobot/project-static/docs/code-reference/nautobot/apps/admin.html +18 -18
- nautobot/project-static/docs/code-reference/nautobot/apps/api.html +66 -18
- nautobot/project-static/docs/code-reference/nautobot/apps/change_logging.html +18 -18
- nautobot/project-static/docs/code-reference/nautobot/apps/choices.html +18 -18
- nautobot/project-static/docs/code-reference/nautobot/apps/config.html +18 -18
- nautobot/project-static/docs/code-reference/nautobot/apps/constants.html +18 -18
- nautobot/project-static/docs/code-reference/nautobot/apps/datasources.html +18 -18
- nautobot/project-static/docs/code-reference/nautobot/apps/exceptions.html +66 -18
- nautobot/project-static/docs/code-reference/nautobot/apps/factory.html +34 -18
- nautobot/project-static/docs/code-reference/nautobot/apps/filters.html +82 -63
- nautobot/project-static/docs/code-reference/nautobot/apps/forms.html +75 -111
- nautobot/project-static/docs/code-reference/nautobot/apps/graphql.html +18 -18
- nautobot/project-static/docs/code-reference/nautobot/apps/jobs.html +34 -18
- nautobot/project-static/docs/code-reference/nautobot/apps/models.html +161 -18
- nautobot/project-static/docs/code-reference/nautobot/apps/querysets.html +18 -18
- nautobot/project-static/docs/code-reference/nautobot/apps/secrets.html +18 -18
- nautobot/project-static/docs/code-reference/nautobot/apps/tables.html +18 -18
- nautobot/project-static/docs/code-reference/nautobot/apps/testing.html +18 -18
- nautobot/project-static/docs/code-reference/nautobot/apps/ui.html +18 -18
- nautobot/project-static/docs/code-reference/nautobot/apps/urls.html +18 -18
- nautobot/project-static/docs/code-reference/nautobot/apps/utils.html +21 -19
- nautobot/project-static/docs/code-reference/nautobot/apps/views.html +34 -18
- nautobot/project-static/docs/development/apps/api/configuration-view.html +18 -18
- nautobot/project-static/docs/development/apps/api/database-backend-config.html +18 -18
- nautobot/project-static/docs/development/apps/api/models/django-admin.html +18 -18
- nautobot/project-static/docs/development/apps/api/models/global-search.html +18 -18
- nautobot/project-static/docs/development/apps/api/models/graphql.html +18 -18
- nautobot/project-static/docs/development/apps/api/models/index.html +33 -22
- nautobot/project-static/docs/development/apps/api/nautobot-app-config.html +18 -18
- nautobot/project-static/docs/development/apps/api/platform-features/custom-validators.html +18 -18
- nautobot/project-static/docs/development/apps/api/platform-features/filter-extensions.html +18 -18
- nautobot/project-static/docs/development/apps/api/platform-features/git-repository-content.html +18 -18
- nautobot/project-static/docs/development/apps/api/platform-features/index.html +18 -18
- nautobot/project-static/docs/development/apps/api/platform-features/jinja2-filters.html +18 -18
- nautobot/project-static/docs/development/apps/api/platform-features/jobs.html +18 -18
- nautobot/project-static/docs/development/apps/api/platform-features/populating-extensibility-features.html +18 -18
- nautobot/project-static/docs/development/apps/api/platform-features/secrets-providers.html +18 -18
- nautobot/project-static/docs/development/apps/api/platform-features/uniquely-identify-objects.html +18 -18
- nautobot/project-static/docs/development/apps/api/prometheus.html +18 -18
- nautobot/project-static/docs/development/apps/api/setup.html +18 -18
- nautobot/project-static/docs/development/apps/api/testing.html +18 -18
- nautobot/project-static/docs/development/apps/api/ui-extensions/banners.html +18 -18
- nautobot/project-static/docs/development/apps/api/ui-extensions/home-page.html +18 -18
- nautobot/project-static/docs/development/apps/api/ui-extensions/index.html +18 -18
- nautobot/project-static/docs/development/apps/api/ui-extensions/navigation.html +18 -18
- nautobot/project-static/docs/development/apps/api/ui-extensions/object-views.html +18 -18
- nautobot/project-static/docs/development/apps/api/views/base-template.html +18 -18
- nautobot/project-static/docs/development/apps/api/views/core-view-overrides.html +18 -18
- nautobot/project-static/docs/development/apps/api/views/django-generic-views.html +18 -18
- nautobot/project-static/docs/development/apps/api/views/help-documentation.html +18 -18
- nautobot/project-static/docs/development/apps/api/views/index.html +18 -18
- nautobot/project-static/docs/development/apps/api/views/nautobot-generic-views.html +18 -18
- nautobot/project-static/docs/development/apps/api/views/nautobotuiviewset.html +18 -18
- nautobot/project-static/docs/development/apps/api/views/nautobotuiviewsetrouter.html +18 -18
- nautobot/project-static/docs/development/apps/api/views/notes.html +18 -18
- nautobot/project-static/docs/development/apps/api/views/rest-api.html +18 -18
- nautobot/project-static/docs/development/apps/api/views/urls.html +18 -18
- nautobot/project-static/docs/development/apps/index.html +18 -18
- nautobot/project-static/docs/development/apps/migration/code-updates.html +18 -18
- nautobot/project-static/docs/development/apps/migration/dependency-updates.html +18 -18
- nautobot/project-static/docs/development/apps/migration/from-v1.html +18 -18
- nautobot/project-static/docs/development/apps/migration/model-updates/dcim.html +18 -18
- nautobot/project-static/docs/development/apps/migration/model-updates/extras.html +18 -18
- nautobot/project-static/docs/development/apps/migration/model-updates/global.html +18 -18
- nautobot/project-static/docs/development/apps/migration/model-updates/ipam.html +18 -18
- nautobot/project-static/docs/development/apps/porting-from-netbox.html +18 -18
- nautobot/project-static/docs/development/core/application-registry.html +18 -18
- nautobot/project-static/docs/development/core/best-practices.html +18 -18
- nautobot/project-static/docs/development/core/bootstrap-ui.html +18 -18
- nautobot/project-static/docs/development/core/caching.html +18 -18
- nautobot/project-static/docs/development/core/controllers.html +18 -18
- nautobot/project-static/docs/development/core/docker-compose-advanced-use-cases.html +18 -18
- nautobot/project-static/docs/development/core/generic-views.html +18 -18
- nautobot/project-static/docs/development/core/getting-started.html +18 -18
- nautobot/project-static/docs/development/core/homepage.html +18 -18
- nautobot/project-static/docs/development/core/index.html +29 -18
- nautobot/project-static/docs/development/core/model-checklist.html +26 -20
- nautobot/project-static/docs/development/core/model-features.html +18 -18
- nautobot/project-static/docs/development/core/natural-keys.html +18 -18
- nautobot/project-static/docs/development/core/navigation-menu.html +18 -18
- nautobot/project-static/docs/development/core/release-checklist.html +18 -18
- nautobot/project-static/docs/development/core/role-internals.html +18 -18
- nautobot/project-static/docs/development/core/settings.html +18 -18
- nautobot/project-static/docs/development/core/style-guide.html +19 -19
- nautobot/project-static/docs/development/core/templates.html +18 -18
- nautobot/project-static/docs/development/core/testing.html +18 -18
- nautobot/project-static/docs/development/core/user-preferences.html +18 -18
- nautobot/project-static/docs/development/index.html +18 -18
- nautobot/project-static/docs/development/jobs/index.html +393 -379
- nautobot/project-static/docs/development/jobs/migration/from-v1.html +18 -18
- nautobot/project-static/docs/index.html +9032 -13
- nautobot/project-static/docs/models/extras/metadatachoice.html +3 -3
- nautobot/project-static/docs/models/extras/metadatatype.html +3 -3
- nautobot/project-static/docs/models/extras/objectmetadata.html +3 -3
- nautobot/project-static/docs/objects.inv +0 -0
- nautobot/project-static/docs/overview/application_stack.html +18 -18
- nautobot/project-static/docs/overview/design_philosophy.html +20 -20
- nautobot/project-static/docs/overview/index.html +13 -9032
- nautobot/project-static/docs/release-notes/index.html +252 -19
- nautobot/project-static/docs/release-notes/version-1.0.html +18 -18
- nautobot/project-static/docs/release-notes/version-1.1.html +18 -18
- nautobot/project-static/docs/release-notes/version-1.2.html +18 -18
- nautobot/project-static/docs/release-notes/version-1.3.html +18 -18
- nautobot/project-static/docs/release-notes/version-1.4.html +18 -18
- nautobot/project-static/docs/release-notes/version-1.5.html +18 -18
- nautobot/project-static/docs/release-notes/version-1.6.html +18 -18
- nautobot/project-static/docs/release-notes/version-2.0.html +18 -18
- nautobot/project-static/docs/release-notes/version-2.1.html +18 -18
- nautobot/project-static/docs/release-notes/version-2.2.html +248 -111
- nautobot/project-static/docs/release-notes/version-2.3.html +775 -91
- nautobot/project-static/docs/requirements.txt +3 -3
- nautobot/project-static/docs/search/search_index.json +1 -1
- nautobot/project-static/docs/sitemap.xml +278 -278
- nautobot/project-static/docs/sitemap.xml.gz +0 -0
- nautobot/project-static/docs/user-guide/administration/configuration/authentication/ldap.html +18 -18
- nautobot/project-static/docs/user-guide/administration/configuration/authentication/remote.html +18 -18
- nautobot/project-static/docs/user-guide/administration/configuration/authentication/sso.html +18 -18
- nautobot/project-static/docs/user-guide/administration/configuration/index.html +18 -18
- nautobot/project-static/docs/user-guide/administration/configuration/optional-settings.html +55 -23
- nautobot/project-static/docs/user-guide/administration/configuration/required-settings.html +18 -18
- nautobot/project-static/docs/user-guide/administration/configuration/time-zones.html +18 -18
- nautobot/project-static/docs/user-guide/administration/guides/caching.html +18 -18
- nautobot/project-static/docs/user-guide/administration/guides/celery-queues.html +22 -18
- nautobot/project-static/docs/user-guide/administration/guides/healthcheck.html +18 -18
- nautobot/project-static/docs/user-guide/administration/guides/permissions.html +18 -18
- nautobot/project-static/docs/user-guide/administration/guides/prometheus-metrics.html +18 -18
- nautobot/project-static/docs/user-guide/administration/guides/replicating-nautobot.html +18 -18
- nautobot/project-static/docs/user-guide/administration/guides/request-profiling.html +18 -18
- nautobot/project-static/docs/user-guide/administration/guides/s3-django-storage.html +18 -18
- nautobot/project-static/docs/user-guide/administration/installation/app-install.html +18 -18
- nautobot/project-static/docs/user-guide/administration/installation/external-authentication.html +18 -18
- nautobot/project-static/docs/user-guide/administration/installation/http-server.html +69 -82
- nautobot/project-static/docs/user-guide/administration/installation/index.html +24 -24
- nautobot/project-static/docs/user-guide/administration/installation/install_system.html +60 -52
- nautobot/project-static/docs/user-guide/administration/installation/nautobot.html +80 -87
- nautobot/project-static/docs/user-guide/administration/installation/services.html +37 -44
- nautobot/project-static/docs/user-guide/administration/installation-extras/docker.html +18 -18
- nautobot/project-static/docs/user-guide/administration/installation-extras/health-checks.html +18 -18
- nautobot/project-static/docs/user-guide/administration/installation-extras/selinux-troubleshooting.html +18 -18
- nautobot/project-static/docs/user-guide/administration/migration/migrating-from-netbox.html +18 -18
- nautobot/project-static/docs/user-guide/administration/migration/migrating-from-postgresql.html +18 -18
- nautobot/project-static/docs/user-guide/administration/tools/nautobot-server.html +76 -24
- nautobot/project-static/docs/user-guide/administration/tools/nautobot-shell.html +18 -18
- nautobot/project-static/docs/user-guide/administration/upgrading/database-backup.html +18 -18
- nautobot/project-static/docs/user-guide/administration/upgrading/from-v1/ipam/after-you-upgrade.html +18 -18
- nautobot/project-static/docs/user-guide/administration/upgrading/from-v1/ipam/before-you-upgrade.html +18 -18
- nautobot/project-static/docs/user-guide/administration/upgrading/from-v1/ipam/for-developers.html +18 -18
- nautobot/project-static/docs/user-guide/administration/upgrading/from-v1/ipam/index.html +18 -18
- nautobot/project-static/docs/user-guide/administration/upgrading/from-v1/ipam/whats-changed.html +18 -18
- nautobot/project-static/docs/user-guide/administration/upgrading/from-v1/region-and-site-data-migration-guide.html +18 -18
- nautobot/project-static/docs/user-guide/administration/upgrading/from-v1/upgrading-from-nautobot-v1.html +18 -18
- nautobot/project-static/docs/user-guide/administration/upgrading/upgrading.html +18 -18
- nautobot/project-static/docs/user-guide/core-data-model/circuits/circuit.html +18 -18
- nautobot/project-static/docs/user-guide/core-data-model/circuits/circuittermination.html +18 -18
- nautobot/project-static/docs/user-guide/core-data-model/circuits/circuittype.html +18 -18
- nautobot/project-static/docs/user-guide/core-data-model/circuits/provider.html +18 -18
- nautobot/project-static/docs/user-guide/core-data-model/circuits/providernetwork.html +18 -18
- nautobot/project-static/docs/user-guide/core-data-model/cloud/cloud.html +18 -18
- nautobot/project-static/docs/user-guide/core-data-model/cloud/cloudaccount.html +18 -18
- nautobot/project-static/docs/user-guide/core-data-model/cloud/cloudnetwork.html +18 -18
- nautobot/project-static/docs/user-guide/core-data-model/cloud/cloudnetworkprefixassignment.html +18 -18
- nautobot/project-static/docs/user-guide/core-data-model/cloud/cloudresourcetype.html +18 -18
- nautobot/project-static/docs/user-guide/core-data-model/cloud/cloudservice.html +18 -18
- nautobot/project-static/docs/user-guide/core-data-model/cloud/cloudservicenetworkassignment.html +18 -18
- nautobot/project-static/docs/user-guide/core-data-model/dcim/cable.html +18 -18
- nautobot/project-static/docs/user-guide/core-data-model/dcim/consoleport.html +18 -18
- nautobot/project-static/docs/user-guide/core-data-model/dcim/consoleporttemplate.html +18 -18
- nautobot/project-static/docs/user-guide/core-data-model/dcim/consoleserverport.html +18 -18
- nautobot/project-static/docs/user-guide/core-data-model/dcim/consoleserverporttemplate.html +18 -18
- nautobot/project-static/docs/user-guide/core-data-model/dcim/controller.html +18 -18
- nautobot/project-static/docs/user-guide/core-data-model/dcim/controllermanageddevicegroup.html +18 -18
- nautobot/project-static/docs/user-guide/core-data-model/dcim/device.html +19 -19
- nautobot/project-static/docs/user-guide/core-data-model/dcim/devicebay.html +18 -18
- nautobot/project-static/docs/user-guide/core-data-model/dcim/devicebaytemplate.html +18 -18
- nautobot/project-static/docs/user-guide/core-data-model/dcim/devicefamily.html +18 -18
- nautobot/project-static/docs/user-guide/core-data-model/dcim/deviceredundancygroup.html +18 -18
- nautobot/project-static/docs/user-guide/core-data-model/dcim/devicetype.html +18 -18
- nautobot/project-static/docs/user-guide/core-data-model/dcim/frontport.html +18 -18
- nautobot/project-static/docs/user-guide/core-data-model/dcim/frontporttemplate.html +18 -18
- nautobot/project-static/docs/user-guide/core-data-model/dcim/interface.html +18 -18
- nautobot/project-static/docs/user-guide/core-data-model/dcim/interfaceredundancygroup.html +18 -18
- nautobot/project-static/docs/user-guide/core-data-model/dcim/interfacetemplate.html +18 -18
- nautobot/project-static/docs/user-guide/core-data-model/dcim/inventoryitem.html +18 -18
- nautobot/project-static/docs/user-guide/core-data-model/dcim/location.html +18 -18
- nautobot/project-static/docs/user-guide/core-data-model/dcim/locationtype.html +18 -18
- nautobot/project-static/docs/user-guide/core-data-model/dcim/manufacturer.html +19 -19
- nautobot/project-static/docs/user-guide/core-data-model/dcim/module.html +18 -18
- nautobot/project-static/docs/user-guide/core-data-model/dcim/modulebay.html +18 -18
- nautobot/project-static/docs/user-guide/core-data-model/dcim/modulebaytemplate.html +18 -18
- nautobot/project-static/docs/user-guide/core-data-model/dcim/moduletype.html +18 -18
- nautobot/project-static/docs/user-guide/core-data-model/dcim/platform.html +18 -18
- nautobot/project-static/docs/user-guide/core-data-model/dcim/powerfeed.html +18 -18
- nautobot/project-static/docs/user-guide/core-data-model/dcim/poweroutlet.html +18 -18
- nautobot/project-static/docs/user-guide/core-data-model/dcim/poweroutlettemplate.html +18 -18
- nautobot/project-static/docs/user-guide/core-data-model/dcim/powerpanel.html +18 -18
- nautobot/project-static/docs/user-guide/core-data-model/dcim/powerport.html +18 -18
- nautobot/project-static/docs/user-guide/core-data-model/dcim/powerporttemplate.html +18 -18
- nautobot/project-static/docs/user-guide/core-data-model/dcim/rack.html +18 -18
- nautobot/project-static/docs/user-guide/core-data-model/dcim/rackgroup.html +18 -18
- nautobot/project-static/docs/user-guide/core-data-model/dcim/rackreservation.html +18 -18
- nautobot/project-static/docs/user-guide/core-data-model/dcim/rearport.html +18 -18
- nautobot/project-static/docs/user-guide/core-data-model/dcim/rearporttemplate.html +18 -18
- nautobot/project-static/docs/user-guide/core-data-model/dcim/softwareimagefile.html +18 -18
- nautobot/project-static/docs/user-guide/core-data-model/dcim/softwareversion.html +18 -18
- nautobot/project-static/docs/user-guide/core-data-model/dcim/virtualchassis.html +18 -18
- nautobot/project-static/docs/user-guide/core-data-model/extras/configcontext.html +62 -18
- nautobot/project-static/docs/user-guide/core-data-model/extras/configcontextschema.html +18 -18
- nautobot/project-static/docs/user-guide/core-data-model/extras/contact.html +18 -18
- nautobot/project-static/docs/user-guide/core-data-model/extras/team.html +18 -18
- nautobot/project-static/docs/user-guide/core-data-model/ipam/ipaddress.html +18 -18
- nautobot/project-static/docs/user-guide/core-data-model/ipam/namespace.html +18 -18
- nautobot/project-static/docs/user-guide/core-data-model/ipam/prefix.html +18 -18
- nautobot/project-static/docs/user-guide/core-data-model/ipam/rir.html +18 -18
- nautobot/project-static/docs/user-guide/core-data-model/ipam/routetarget.html +18 -18
- nautobot/project-static/docs/user-guide/core-data-model/ipam/service.html +18 -18
- nautobot/project-static/docs/user-guide/core-data-model/ipam/vlan.html +18 -18
- nautobot/project-static/docs/user-guide/core-data-model/ipam/vlangroup.html +18 -18
- nautobot/project-static/docs/user-guide/core-data-model/ipam/vrf.html +18 -18
- nautobot/project-static/docs/user-guide/core-data-model/overview/introduction.html +18 -18
- nautobot/project-static/docs/user-guide/core-data-model/tenancy/tenant.html +18 -18
- nautobot/project-static/docs/user-guide/core-data-model/tenancy/tenantgroup.html +18 -18
- nautobot/project-static/docs/user-guide/core-data-model/virtualization/cluster.html +18 -18
- nautobot/project-static/docs/user-guide/core-data-model/virtualization/clustergroup.html +18 -18
- nautobot/project-static/docs/user-guide/core-data-model/virtualization/clustertype.html +18 -18
- nautobot/project-static/docs/user-guide/core-data-model/virtualization/virtualmachine.html +18 -18
- nautobot/project-static/docs/user-guide/core-data-model/virtualization/vminterface.html +18 -18
- nautobot/project-static/docs/user-guide/feature-guides/contacts-and-teams.html +18 -18
- nautobot/project-static/docs/user-guide/feature-guides/custom-fields.html +18 -18
- nautobot/project-static/docs/user-guide/feature-guides/getting-started/creating-devices.html +18 -18
- nautobot/project-static/docs/user-guide/feature-guides/getting-started/creating-location-types-and-locations.html +18 -18
- nautobot/project-static/docs/user-guide/feature-guides/getting-started/index.html +18 -18
- nautobot/project-static/docs/user-guide/feature-guides/getting-started/interfaces.html +18 -18
- nautobot/project-static/docs/user-guide/feature-guides/getting-started/ipam.html +18 -18
- nautobot/project-static/docs/user-guide/feature-guides/getting-started/platforms.html +18 -18
- nautobot/project-static/docs/user-guide/feature-guides/getting-started/search-bar.html +18 -18
- nautobot/project-static/docs/user-guide/feature-guides/getting-started/tenants.html +18 -18
- nautobot/project-static/docs/user-guide/feature-guides/getting-started/vlans-and-vlan-groups.html +18 -18
- nautobot/project-static/docs/user-guide/feature-guides/git-data-source.html +18 -18
- nautobot/project-static/docs/user-guide/feature-guides/graphql.html +18 -18
- nautobot/project-static/docs/user-guide/feature-guides/ip-address-merge-tool.html +18 -18
- nautobot/project-static/docs/user-guide/feature-guides/relationships.html +18 -18
- nautobot/project-static/docs/user-guide/feature-guides/software-image-files-and-versions.html +18 -18
- nautobot/project-static/docs/user-guide/index.html +18 -18
- nautobot/project-static/docs/user-guide/platform-functionality/change-logging.html +18 -18
- nautobot/project-static/docs/user-guide/platform-functionality/computedfield.html +18 -18
- nautobot/project-static/docs/user-guide/platform-functionality/customfield.html +18 -18
- nautobot/project-static/docs/user-guide/platform-functionality/customlink.html +18 -18
- nautobot/project-static/docs/user-guide/platform-functionality/dynamicgroup.html +18 -18
- nautobot/project-static/docs/user-guide/platform-functionality/exporttemplate.html +18 -18
- nautobot/project-static/docs/user-guide/platform-functionality/externalintegration.html +18 -18
- nautobot/project-static/docs/user-guide/platform-functionality/gitrepository.html +18 -18
- nautobot/project-static/docs/user-guide/platform-functionality/graphql.html +18 -18
- nautobot/project-static/docs/user-guide/platform-functionality/graphqlquery.html +18 -18
- nautobot/project-static/docs/user-guide/platform-functionality/imageattachment.html +18 -18
- nautobot/project-static/docs/user-guide/platform-functionality/jobs/index.html +18 -18
- nautobot/project-static/docs/user-guide/platform-functionality/jobs/job-scheduling-and-approvals.html +21 -21
- nautobot/project-static/docs/user-guide/platform-functionality/jobs/jobbutton.html +18 -18
- nautobot/project-static/docs/user-guide/platform-functionality/jobs/jobhook.html +18 -18
- nautobot/project-static/docs/user-guide/platform-functionality/jobs/models.html +18 -18
- nautobot/project-static/docs/user-guide/platform-functionality/napalm.html +36 -36
- nautobot/project-static/docs/user-guide/platform-functionality/note.html +33 -33
- nautobot/project-static/docs/user-guide/platform-functionality/{metadata.html → objectmetadata.html} +197 -84
- nautobot/project-static/docs/user-guide/platform-functionality/relationship.html +21 -21
- nautobot/project-static/docs/user-guide/platform-functionality/rest-api/authentication.html +18 -18
- nautobot/project-static/docs/user-guide/platform-functionality/rest-api/filtering.html +18 -18
- nautobot/project-static/docs/user-guide/platform-functionality/rest-api/overview.html +18 -18
- nautobot/project-static/docs/user-guide/platform-functionality/rest-api/ui-related-endpoints.html +18 -18
- nautobot/project-static/docs/user-guide/platform-functionality/role.html +18 -18
- nautobot/project-static/docs/user-guide/platform-functionality/savedview.html +18 -18
- nautobot/project-static/docs/user-guide/platform-functionality/secret.html +18 -18
- nautobot/project-static/docs/user-guide/platform-functionality/staticgroupassociation.html +18 -18
- nautobot/project-static/docs/user-guide/platform-functionality/status.html +18 -18
- nautobot/project-static/docs/user-guide/platform-functionality/tag.html +18 -18
- nautobot/project-static/docs/user-guide/platform-functionality/template-filters.html +18 -18
- nautobot/project-static/docs/user-guide/platform-functionality/users/objectpermission.html +18 -18
- nautobot/project-static/docs/user-guide/platform-functionality/users/token.html +18 -18
- nautobot/project-static/docs/user-guide/platform-functionality/webhook.html +18 -18
- nautobot/project-static/js/homepage_layout.js +3 -0
- nautobot/tenancy/templates/tenancy/tenant.html +4 -4
- nautobot/virtualization/models.py +0 -2
- nautobot/virtualization/tables.py +2 -5
- {nautobot-2.3.0b1.dist-info → nautobot-2.3.2.dist-info}/METADATA +3 -3
- {nautobot-2.3.0b1.dist-info → nautobot-2.3.2.dist-info}/RECORD +397 -393
- nautobot/project-static/docs/assets/stylesheets/main.76a95c52.min.css +0 -1
- nautobot/project-static/docs/assets/stylesheets/main.76a95c52.min.css.map +0 -1
- {nautobot-2.3.0b1.dist-info → nautobot-2.3.2.dist-info}/LICENSE.txt +0 -0
- {nautobot-2.3.0b1.dist-info → nautobot-2.3.2.dist-info}/NOTICE +0 -0
- {nautobot-2.3.0b1.dist-info → nautobot-2.3.2.dist-info}/WHEEL +0 -0
- {nautobot-2.3.0b1.dist-info → nautobot-2.3.2.dist-info}/entry_points.txt +0 -0
|
@@ -12,10 +12,15 @@ from django.urls import reverse
|
|
|
12
12
|
from django.utils.timezone import make_aware, now
|
|
13
13
|
from rest_framework import status
|
|
14
14
|
|
|
15
|
+
try:
|
|
16
|
+
from zoneinfo import ZoneInfo
|
|
17
|
+
except ImportError: # Python 3.8
|
|
18
|
+
from backports.zoneinfo import ZoneInfo
|
|
19
|
+
|
|
15
20
|
from nautobot.core.choices import ColorChoices
|
|
16
21
|
from nautobot.core.models.fields import slugify_dashes_to_underscores
|
|
17
22
|
from nautobot.core.testing import APITestCase, APIViewTestCases
|
|
18
|
-
from nautobot.core.testing.utils import disable_warnings
|
|
23
|
+
from nautobot.core.testing.utils import disable_warnings, get_deletable_objects
|
|
19
24
|
from nautobot.core.utils.lookup import get_route_for_model
|
|
20
25
|
from nautobot.core.utils.permissions import get_permission_for_model
|
|
21
26
|
from nautobot.dcim.models import (
|
|
@@ -1583,7 +1588,7 @@ class JobTest(
|
|
|
1583
1588
|
"schedule": {
|
|
1584
1589
|
"name": "test",
|
|
1585
1590
|
"interval": "future",
|
|
1586
|
-
"start_time": str(
|
|
1591
|
+
"start_time": str(now() + timedelta(minutes=1)),
|
|
1587
1592
|
},
|
|
1588
1593
|
}
|
|
1589
1594
|
|
|
@@ -1780,7 +1785,7 @@ class JobTest(
|
|
|
1780
1785
|
"var2": "Ground control to Major Tom",
|
|
1781
1786
|
"var23": "Commencing countdown, engines on",
|
|
1782
1787
|
"var1": test_file,
|
|
1783
|
-
"_schedule_start_time": str(
|
|
1788
|
+
"_schedule_start_time": str(now() + timedelta(minutes=1)),
|
|
1784
1789
|
"_schedule_interval": "future",
|
|
1785
1790
|
"_schedule_name": "test",
|
|
1786
1791
|
}
|
|
@@ -1799,7 +1804,7 @@ class JobTest(
|
|
|
1799
1804
|
data = {
|
|
1800
1805
|
"data": {"var1": "x", "var2": 1, "var3": False, "var4": d.pk},
|
|
1801
1806
|
"schedule": {
|
|
1802
|
-
"start_time": str(
|
|
1807
|
+
"start_time": str(now() + timedelta(minutes=1)),
|
|
1803
1808
|
"interval": "future",
|
|
1804
1809
|
"name": "test",
|
|
1805
1810
|
},
|
|
@@ -1838,7 +1843,7 @@ class JobTest(
|
|
|
1838
1843
|
data = {
|
|
1839
1844
|
"data": {},
|
|
1840
1845
|
"schedule": {
|
|
1841
|
-
"start_time": str(
|
|
1846
|
+
"start_time": str(now() + timedelta(minutes=1)),
|
|
1842
1847
|
"interval": "future",
|
|
1843
1848
|
"name": "test",
|
|
1844
1849
|
},
|
|
@@ -1914,7 +1919,7 @@ class JobTest(
|
|
|
1914
1919
|
data = {
|
|
1915
1920
|
"data": {"var1": "x", "var2": 1, "var3": False, "var4": d.pk},
|
|
1916
1921
|
"schedule": {
|
|
1917
|
-
"start_time": str(
|
|
1922
|
+
"start_time": str(now() - timedelta(minutes=1)),
|
|
1918
1923
|
"interval": "future",
|
|
1919
1924
|
"name": "test",
|
|
1920
1925
|
},
|
|
@@ -1933,7 +1938,7 @@ class JobTest(
|
|
|
1933
1938
|
data = {
|
|
1934
1939
|
"data": {"var1": "x", "var2": 1, "var3": False, "var4": d.pk},
|
|
1935
1940
|
"schedule": {
|
|
1936
|
-
"start_time": str(
|
|
1941
|
+
"start_time": str(now() + timedelta(minutes=1)),
|
|
1937
1942
|
"interval": "hourly",
|
|
1938
1943
|
"name": "test",
|
|
1939
1944
|
},
|
|
@@ -2438,30 +2443,24 @@ class ScheduledJobTest(
|
|
|
2438
2443
|
name="test2",
|
|
2439
2444
|
task="pass.TestPass",
|
|
2440
2445
|
job_model=job_model,
|
|
2441
|
-
interval=JobExecutionType.
|
|
2446
|
+
interval=JobExecutionType.TYPE_DAILY,
|
|
2442
2447
|
user=user,
|
|
2443
2448
|
approval_required=True,
|
|
2444
|
-
start_time=
|
|
2449
|
+
start_time=datetime(2020, 1, 23, 12, 34, 56, tzinfo=ZoneInfo("America/New_York")),
|
|
2450
|
+
time_zone=ZoneInfo("America/New_York"),
|
|
2445
2451
|
)
|
|
2446
2452
|
ScheduledJob.objects.create(
|
|
2447
2453
|
name="test3",
|
|
2448
2454
|
task="pass.TestPass",
|
|
2449
2455
|
job_model=job_model,
|
|
2450
|
-
interval=JobExecutionType.
|
|
2456
|
+
interval=JobExecutionType.TYPE_CUSTOM,
|
|
2457
|
+
crontab="34 12 * * *",
|
|
2458
|
+
enabled=False,
|
|
2451
2459
|
user=user,
|
|
2452
2460
|
approval_required=True,
|
|
2453
2461
|
start_time=now(),
|
|
2454
2462
|
)
|
|
2455
2463
|
|
|
2456
|
-
# TODO: Unskip after resolving #2908, #2909
|
|
2457
|
-
@skip("DRF's built-in OrderingFilter triggering natural key attribute error in our base")
|
|
2458
|
-
def test_list_objects_ascending_ordered(self):
|
|
2459
|
-
pass
|
|
2460
|
-
|
|
2461
|
-
@skip("DRF's built-in OrderingFilter triggering natural key attribute error in our base")
|
|
2462
|
-
def test_list_objects_descending_ordered(self):
|
|
2463
|
-
pass
|
|
2464
|
-
|
|
2465
2464
|
|
|
2466
2465
|
class JobApprovalTest(APITestCase):
|
|
2467
2466
|
@classmethod
|
|
@@ -2741,21 +2740,21 @@ class ObjectMetadataTest(APIViewTestCases.APIViewTestCase):
|
|
|
2741
2740
|
value="Hey",
|
|
2742
2741
|
scoped_fields=["parent", "status"],
|
|
2743
2742
|
assigned_object_type=ContentType.objects.get_for_model(IPAddress),
|
|
2744
|
-
assigned_object_id=IPAddress.objects.first().pk,
|
|
2743
|
+
assigned_object_id=IPAddress.objects.filter(associated_object_metadata__isnull=True).first().pk,
|
|
2745
2744
|
)
|
|
2746
2745
|
ObjectMetadata.objects.create(
|
|
2747
2746
|
metadata_type=mdts[0],
|
|
2748
2747
|
value="Hello",
|
|
2749
2748
|
scoped_fields=["namespace"],
|
|
2750
2749
|
assigned_object_type=ContentType.objects.get_for_model(Prefix),
|
|
2751
|
-
assigned_object_id=Prefix.objects.first().pk,
|
|
2750
|
+
assigned_object_id=Prefix.objects.filter(associated_object_metadata__isnull=True).first().pk,
|
|
2752
2751
|
)
|
|
2753
2752
|
ObjectMetadata.objects.create(
|
|
2754
2753
|
metadata_type=mdts[2],
|
|
2755
2754
|
contact=Contact.objects.first(),
|
|
2756
2755
|
scoped_fields=["status"],
|
|
2757
2756
|
assigned_object_type=ContentType.objects.get_for_model(Prefix),
|
|
2758
|
-
assigned_object_id=Prefix.objects.last().pk,
|
|
2757
|
+
assigned_object_id=Prefix.objects.filter(associated_object_metadata__isnull=True).last().pk,
|
|
2759
2758
|
)
|
|
2760
2759
|
cls.create_data = [
|
|
2761
2760
|
{
|
|
@@ -2763,34 +2762,41 @@ class ObjectMetadataTest(APIViewTestCases.APIViewTestCase):
|
|
|
2763
2762
|
"scoped_fields": ["location_type"],
|
|
2764
2763
|
"value": "random words",
|
|
2765
2764
|
"assigned_object_type": "dcim.location",
|
|
2766
|
-
"assigned_object_id": Location.objects.first().pk,
|
|
2765
|
+
"assigned_object_id": Location.objects.filter(associated_object_metadata__isnull=True).first().pk,
|
|
2767
2766
|
},
|
|
2768
2767
|
{
|
|
2769
2768
|
"metadata_type": mdts[1].pk,
|
|
2770
2769
|
"scoped_fields": ["name"],
|
|
2771
2770
|
"value": "random words",
|
|
2772
2771
|
"assigned_object_type": "dcim.location",
|
|
2773
|
-
"assigned_object_id": Location.objects.first().pk,
|
|
2772
|
+
"assigned_object_id": Location.objects.filter(associated_object_metadata__isnull=True).first().pk,
|
|
2774
2773
|
},
|
|
2775
2774
|
{
|
|
2776
2775
|
"metadata_type": mdts[2].pk,
|
|
2777
|
-
"scoped_fields": [
|
|
2776
|
+
"scoped_fields": [],
|
|
2778
2777
|
"contact": Contact.objects.first().pk,
|
|
2779
2778
|
"assigned_object_type": "dcim.device",
|
|
2780
|
-
"assigned_object_id": Device.objects.first().pk,
|
|
2779
|
+
"assigned_object_id": Device.objects.filter(associated_object_metadata__isnull=True).first().pk,
|
|
2781
2780
|
},
|
|
2782
2781
|
{
|
|
2783
2782
|
"metadata_type": mdts[2].pk,
|
|
2784
2783
|
"scoped_fields": ["interfaces"],
|
|
2785
2784
|
"team": Team.objects.first().pk,
|
|
2786
2785
|
"assigned_object_type": "dcim.device",
|
|
2787
|
-
"assigned_object_id": Device.objects.
|
|
2786
|
+
"assigned_object_id": Device.objects.filter(associated_object_metadata__isnull=True).last().pk,
|
|
2788
2787
|
},
|
|
2789
2788
|
]
|
|
2790
2789
|
cls.update_data = {
|
|
2791
2790
|
"scoped_fields": ["pk"],
|
|
2792
2791
|
}
|
|
2793
2792
|
|
|
2793
|
+
def get_deletable_object(self):
|
|
2794
|
+
# TODO: CSV round-trip doesn't work for empty scoped_fields values at present. :-(
|
|
2795
|
+
instance = get_deletable_objects(self.model, self._get_queryset().exclude(scoped_fields=[])).first()
|
|
2796
|
+
if instance is None:
|
|
2797
|
+
self.fail("Couldn't find a single deletable object with non-empty scoped_fields")
|
|
2798
|
+
return instance
|
|
2799
|
+
|
|
2794
2800
|
|
|
2795
2801
|
class NoteTest(APIViewTestCases.APIViewTestCase):
|
|
2796
2802
|
model = Note
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
from datetime import datetime
|
|
1
2
|
import uuid
|
|
2
3
|
|
|
3
4
|
from django.contrib.auth import get_user_model
|
|
@@ -5,6 +6,12 @@ from django.contrib.contenttypes.models import ContentType
|
|
|
5
6
|
from django.core.files.uploadedfile import SimpleUploadedFile
|
|
6
7
|
from django.db.models import Q
|
|
7
8
|
from django.test import override_settings, RequestFactory
|
|
9
|
+
from django.utils.timezone import now
|
|
10
|
+
|
|
11
|
+
try:
|
|
12
|
+
from zoneinfo import ZoneInfo
|
|
13
|
+
except ImportError: # Python 3.8
|
|
14
|
+
from backports.zoneinfo import ZoneInfo
|
|
8
15
|
|
|
9
16
|
from nautobot.core.choices import ColorChoices
|
|
10
17
|
from nautobot.core.testing import FilterTestCases
|
|
@@ -22,6 +29,7 @@ from nautobot.dcim.models import (
|
|
|
22
29
|
from nautobot.extras.choices import (
|
|
23
30
|
CustomFieldTypeChoices,
|
|
24
31
|
DynamicGroupTypeChoices,
|
|
32
|
+
JobExecutionType,
|
|
25
33
|
JobResultStatusChoices,
|
|
26
34
|
MetadataTypeDataTypeChoices,
|
|
27
35
|
ObjectChangeActionChoices,
|
|
@@ -93,6 +101,7 @@ from nautobot.extras.models import (
|
|
|
93
101
|
RelationshipAssociation,
|
|
94
102
|
Role,
|
|
95
103
|
SavedView,
|
|
104
|
+
ScheduledJob,
|
|
96
105
|
Secret,
|
|
97
106
|
SecretsGroup,
|
|
98
107
|
SecretsGroupAssociation,
|
|
@@ -1124,13 +1133,49 @@ class JobResultFilterSetTestCase(FilterTestCases.FilterTestCase):
|
|
|
1124
1133
|
def setUpTestData(cls):
|
|
1125
1134
|
jobs = Job.objects.all()[:3]
|
|
1126
1135
|
cls.jobs = jobs
|
|
1136
|
+
user = User.objects.create(username="user1", is_active=True)
|
|
1137
|
+
job_model = Job.objects.get_for_class_path("pass.TestPass")
|
|
1138
|
+
scheduled_jobs = [
|
|
1139
|
+
ScheduledJob.objects.create(
|
|
1140
|
+
name="test1",
|
|
1141
|
+
task="pass.TestPass",
|
|
1142
|
+
job_model=job_model,
|
|
1143
|
+
interval=JobExecutionType.TYPE_IMMEDIATELY,
|
|
1144
|
+
user=user,
|
|
1145
|
+
approval_required=True,
|
|
1146
|
+
start_time=now(),
|
|
1147
|
+
),
|
|
1148
|
+
ScheduledJob.objects.create(
|
|
1149
|
+
name="test2",
|
|
1150
|
+
task="pass.TestPass",
|
|
1151
|
+
job_model=job_model,
|
|
1152
|
+
interval=JobExecutionType.TYPE_DAILY,
|
|
1153
|
+
user=user,
|
|
1154
|
+
approval_required=True,
|
|
1155
|
+
start_time=datetime(2020, 1, 23, 12, 34, 56, tzinfo=ZoneInfo("America/New_York")),
|
|
1156
|
+
time_zone=ZoneInfo("America/New_York"),
|
|
1157
|
+
),
|
|
1158
|
+
ScheduledJob.objects.create(
|
|
1159
|
+
name="test3",
|
|
1160
|
+
task="pass.TestPass",
|
|
1161
|
+
job_model=job_model,
|
|
1162
|
+
interval=JobExecutionType.TYPE_CUSTOM,
|
|
1163
|
+
crontab="34 12 * * *",
|
|
1164
|
+
enabled=False,
|
|
1165
|
+
user=user,
|
|
1166
|
+
approval_required=True,
|
|
1167
|
+
start_time=now(),
|
|
1168
|
+
),
|
|
1169
|
+
]
|
|
1170
|
+
cls.scheduled_jobs = scheduled_jobs
|
|
1127
1171
|
user = UserFactory.create()
|
|
1128
|
-
for job in jobs:
|
|
1172
|
+
for idx, job in enumerate(jobs):
|
|
1129
1173
|
JobResult.objects.create(
|
|
1130
1174
|
job_model=job,
|
|
1131
1175
|
name=job.class_path,
|
|
1132
1176
|
user=user,
|
|
1133
1177
|
status=JobResultStatusChoices.STATUS_STARTED,
|
|
1178
|
+
scheduled_job=scheduled_jobs[idx],
|
|
1134
1179
|
)
|
|
1135
1180
|
|
|
1136
1181
|
def test_job_model(self):
|
|
@@ -1144,6 +1189,17 @@ class JobResultFilterSetTestCase(FilterTestCases.FilterTestCase):
|
|
|
1144
1189
|
self.filterset(params, self.queryset).qs, self.queryset.filter(job_model__in=jobs).distinct()
|
|
1145
1190
|
)
|
|
1146
1191
|
|
|
1192
|
+
def test_scheduled_job(self):
|
|
1193
|
+
scheduled_jobs = list(self.scheduled_jobs[:2])
|
|
1194
|
+
filter_params = [
|
|
1195
|
+
{"scheduled_job": [scheduled_jobs[0].pk, scheduled_jobs[1].name]},
|
|
1196
|
+
]
|
|
1197
|
+
for params in filter_params:
|
|
1198
|
+
self.assertQuerysetEqualAndNotEmpty(
|
|
1199
|
+
self.filterset(params, self.queryset).qs,
|
|
1200
|
+
self.queryset.filter(scheduled_job__in=scheduled_jobs).distinct(),
|
|
1201
|
+
)
|
|
1202
|
+
|
|
1147
1203
|
|
|
1148
1204
|
class JobHookFilterSetTestCase(FilterTestCases.NameOnlyFilterTestCase):
|
|
1149
1205
|
queryset = JobHook.objects.all()
|
|
@@ -55,10 +55,10 @@ class JobTest(TestCase):
|
|
|
55
55
|
|
|
56
56
|
self.assertInHTML(
|
|
57
57
|
"""<tr><th><label for="id_var_int">Var int:</label></th><td>
|
|
58
|
-
<input class="form-control
|
|
58
|
+
<input class="form-control" id="id_var_int" max="3600" name="var_int" placeholder="None" required type="number" value="0">
|
|
59
59
|
<br><span class="helptext">Test default of 0 Falsey</span></td></tr>
|
|
60
60
|
<tr><th><label for="id_var_int_no_default">Var int no default:</label></th><td>
|
|
61
|
-
<input class="form-control
|
|
61
|
+
<input class="form-control" id="id_var_int_no_default" max="3600" name="var_int_no_default" placeholder="None" type="number">
|
|
62
62
|
<br><span class="helptext">Test default without default</span></td></tr>""",
|
|
63
63
|
form.as_table(),
|
|
64
64
|
)
|