netbox/netbox/extras
Alexander Haase 6c6cb321bf
Fixes 18555: Fix model URL generator for plugins (#18607)
* Fix model URL generator for plugins

* Fix reverse accessor warning

* Revert "Fix reverse accessor warning"

This reverts commit f07642bb99.

* Add URL test case for regular models

* Split dummy models

Instead of using a single model for testing, one is used for testing the
plugin API and a dedicated one is used for testing the NetBox plugin
model features.

* Fix filterset test case error

* Rename test module

---------

Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
2025-02-18 09:11:32 -05:00
..
api Reomove obsolete nested serializers 2024-10-18 08:16:30 -04:00
dashboard Fix #18314: Use get to avoid KeyError 2025-01-07 10:39:55 -05:00
data Closes #12194: Add pre-defined custom field choices (#13219) 2023-07-28 11:24:21 -04:00
forms Replace DurationChoices by JobIntervalChoices 2025-02-14 14:42:27 -05:00
graphql Fix parsing of extra_choices (#17691) 2024-10-09 10:30:40 -04:00
management use script form's cleaned data when calling script from CLI 2025-02-10 09:46:59 -05:00
migrations Closes #18022: Extend linter (ruff) to enforce line length limit (120 chars) (#18067) 2024-11-21 15:58:11 -05:00
models Closes #18022: Extend linter (ruff) to enforce line length limit (120 chars) (#18067) 2024-11-21 15:58:11 -05:00
tables #8198: Rename CustomField.validation_unique to unique (#17325) 2024-08-30 13:44:03 -04:00
templatetags 17186 change custom link button color from outline-dark to outline-se… (#17248) 2024-08-27 15:08:39 -04:00
tests Fixes 18555: Fix model URL generator for plugins (#18607) 2025-02-18 09:11:32 -05:00
__init__.py Remove default_app_config (deprecated in Django 3.2) 2021-09-15 11:18:47 -04:00
apps.py Closes #17725: Clean up import statements (#17728) 2024-10-10 14:52:47 -04:00
choices.py Replace DurationChoices by JobIntervalChoices 2025-02-14 14:42:27 -05:00
conditions.py Fixes #14829 Simple condition (without and/or) does not work in event rule (#14870) 2024-06-07 07:45:19 -07:00
constants.py Fixes: #18241 - Script results log_threshold should default to Default (#18501) 2025-02-06 16:30:25 -05:00
events.py Fixes #18222: Include action data from event rule in webhook and custom script data 2025-01-03 09:39:05 -05:00
fields.py pep8 fixes 2023-02-19 18:50:24 -05:00
filters.py Ditch CustomFieldFilter 2021-10-28 15:36:12 -04:00
filtersets.py #8198: Rename CustomField.validation_unique to unique (#17325) 2024-08-30 13:44:03 -04:00
jobs.py Closes #18224: Apply all registered request processors when running custom scripts 2024-12-16 11:54:42 -05:00
lookups.py Closes #17725: Clean up import statements (#17728) 2024-10-10 14:52:47 -04:00
querysets.py Fixes #18392: Exclude config contexts assigned to locations for VMs 2025-01-17 13:14:05 -05:00
reports.py Fixes: #18241 - Script results log_threshold should default to Default (#18501) 2025-02-06 16:30:25 -05:00
scripts.py Fixes: #18241 - Script results log_threshold should default to Default (#18501) 2025-02-06 16:30:25 -05:00
search.py Closes #15547: Add comments field to CustomField model 2024-04-19 15:10:06 -04:00
signals.py #15621: Support notifications for deletion of a subscribed object 2024-08-02 11:34:56 -04:00
urls.py Closes #18023: Employ register_model_view() for list views (#18029) 2024-11-20 15:54:37 -05:00
utils.py Add webp to the list of acceptable extensions for handling filenames in image_upload 2024-10-16 16:30:21 -04:00
validators.py Closes #17725: Clean up import statements (#17728) 2024-10-10 14:52:47 -04:00
views.py Fixes 18208: Consolidate rendering configuration templates (#18604) 2025-02-10 11:03:08 -05:00
webhooks.py Closes #15621: User notifications (#16800) 2024-07-15 14:24:11 -04:00