Commit Graph

25 Commits

Author SHA1 Message Date
Jeremy Stretch
7fb6bab9a5 Closes #16290: Capture entire object in changelog data 2024-05-29 09:34:22 -04:00
Jeremy Stretch
b2857ab559 Rename CustomField.content_types to object_types & use ObjectType proxy 2024-03-04 08:33:44 -05:00
Arthur Hanson
d6a9f302ac 14147 Prevent logging to Change Log when no changes are made (#14477)
* 14147 Prevent logging to Change Log when no changes are made

* 14147 add test

* 14147 add exclude_fields to serialize_object

* 14147 make skip empty default to True

* 14147 remove override of to_objectchange

* Misc cleanup

---------

Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
2023-12-15 15:17:45 -05:00
Jeremy Stretch
d809644c4d Closes #12194: Add pre-defined custom field choices (#13219)
* Initial work on custom field choice sets

* Rename choices to extra_choices (prep for #12194)

* Remove CustomField.choices

* Add & update tests

* Clean up table columns

* Add order_alphanetically boolean for choice sets

* Introduce ArrayColumn for choice lists

* Show dependent custom fields on choice set view

* Update custom fields documentation

* Introduce ArrayWidget for more convenient editing of choices

* Incorporate PR feedback

* Misc cleanup

* Initial work on predefined choices for custom fields

* Misc cleanup

* Add IATA airport codes

* #13241: Add support for custom field choice labels

* Restore ArrayColumn

* Misc cleanup

* Change extra_choices back to a nested ArrayField to preserve choice ordering

* Hack to bypass GraphQL API test utility absent support for nested ArrayFields
2023-07-28 11:24:21 -04:00
Jeremy Stretch
1ab8477642 Closes #12988: Introduce custom field choice sets (#13195)
* Initial work on custom field choice sets

* Rename choices to extra_choices (prep for #12194)

* Remove CustomField.choices

* Add & update tests

* Clean up table columns

* Add order_alphanetically boolean for choice sets

* Introduce ArrayColumn for choice lists

* Show dependent custom fields on choice set view

* Update custom fields documentation

* Introduce ArrayWidget for more convenient editing of choices

* Incorporate PR feedback

* Misc cleanup
2023-07-19 10:26:24 -04:00
jeremystretch
ec14b6684b Update django-taggit to 2.0 2021-12-06 13:25:09 -05:00
jeremystretch
c7268c542e Reorganize base TestCase classes 2021-04-14 14:22:58 -04:00
jeremystretch
15d3db817a Fixes #5583: Eliminate redundant change records when adding/removing tags 2021-04-13 10:14:25 -04:00
Jeremy Stretch
1fbff074f7 Fixes #5913: Improve change logging (#5924)
* Initial work on #5913
* Provide per-line diff highlighting
* BulkDeteView should delete objects individually to secure a pre-change snapshot
* Add changelog tests for bulk operations
2021-03-04 13:06:04 -05:00
Christian Loos
d84f0c234a Fixes #5123: Add tests for custom field select changelog 2020-12-16 18:50:55 +01:00
Jeremy Stretch
8d437d80cb #4711: Rename CustomField.obj_type to content_types 2020-10-14 15:26:46 -04:00
Jeremy Stretch
2e6fb7fcf5 Drop CustomFieldValue 2020-08-21 16:21:11 -04:00
Jeremy Stretch
6d2681f9ee Fix changelog tests 2020-08-19 16:02:10 -04:00
Jeremy Stretch
0fc4cd462b Refactor tests (again) 2020-08-18 13:30:16 -04:00
Jeremy Stretch
ed4f9683bb Avoid using post_data() for form data 2020-08-18 13:13:13 -04:00
Jeremy Stretch
f67c44667e Tweak passing of tags 2020-08-18 12:37:07 -04:00
Jeremy Stretch
deb5dc89c9 Simplify tag creation 2020-08-18 11:33:23 -04:00
Jeremy Stretch
e3f1db7cb8 Add changelog tests for UI views 2020-08-18 10:05:58 -04:00
Jeremy Stretch
47d6df1953 Fix serialization of tags for REST API updates 2020-08-17 16:18:47 -04:00
Jeremy Stretch
7a43f1d023 Update tests 2020-06-17 11:14:41 -04:00
Jeremy Stretch
fd7987d703 Add permission assignment to custom test methods 2020-06-08 13:40:46 -04:00
Jeremy Stretch
0a72225ca9 ObjectChange.action to slug (#3569) 2019-12-05 16:30:15 -05:00
Jeremy Stretch
0e0cdc65c0 CustomField.type to slug 2019-12-04 21:01:50 -05:00
Jeremy Stretch
b6beb37e36 Rewrote ObjectChangeMiddleware to remove the curried handle_deleted_object() function 2019-10-22 15:10:49 -04:00
Jeremy Stretch
45f5ec7e60 Add tests for changelog 2019-08-28 10:18:37 -04:00