Commit Graph

93 Commits

Author SHA1 Message Date
Jeremy Stretch
f11d52b95d Introduce CSVModelForm for dynamic CSV imports 2020-05-05 16:15:09 -04:00
Jeremy Stretch
60b22097e0 Fixes #4527: Fix assignment of certain tags to config contexts 2020-04-24 11:31:01 -04:00
John Anderson
0ad47b4574 Merge branch 'develop' into develop-2.8 2020-03-18 14:44:18 -04:00
Jeremy Stretch
0ffdb411f9 Remove APISelect widget/api_url argument from dynamic fields 2020-03-16 14:08:48 -04:00
Jeremy Stretch
29001d8a9a Rename Tag.comments to description 2020-03-13 17:00:00 -04:00
Jeremy Stretch
f4e6bb90c3 Fix form field ordering; self.fields no longer an OrderedDict 2020-02-19 15:08:15 -05:00
Jeremy Stretch
023735cf10 Use DynamicModelChoiceField for all fields using APISelect 2020-02-11 12:25:40 -05:00
Jeremy Stretch
2c57c6c593 Use TreeNode choice fields for region assignment 2020-02-11 09:50:33 -05:00
Jeremy Stretch
7acb77c06f Replace FilterChoiceField with DynamicModelMultipleChoiceField 2020-02-11 09:33:41 -05:00
Jeremy Stretch
252d3595ac Standardize usage of FilterChoiceField 2020-02-10 09:58:33 -05:00
Jeremy Stretch
9fe3d91cd9 Fixes #4091: Fix filtering of objects by custom fields using UI search form 2020-02-05 16:39:42 -05:00
Jeremy Stretch
4601cb7332 Merge pull request #4014 from hSaria/3886-config-context-cluster
Fixes #3886: Config context cluster (group)
2020-02-03 16:02:56 -05:00
Saria Hajjar
76157d68c1 Corrected models for cluster and cluster group fields 2020-02-02 23:37:01 +00:00
Jeremy Stretch
447240c801 Enable CSV import for custom fields 2020-01-29 14:29:47 -05:00
Jeremy Stretch
d1b5e1a04d Introduced CustomFieldModelCSVForm 2020-01-29 13:53:26 -05:00
Jeremy Stretch
011256feee Fix assignment of initial CustomField values when editing an object 2020-01-29 13:31:36 -05:00
Jeremy Stretch
aa958955ae Remove get_custom_fields_for_model() 2020-01-29 12:12:47 -05:00
Jeremy Stretch
2054cd4e2f Move form field generation logic to CustomField class 2020-01-29 11:44:37 -05:00
Jeremy Stretch
0acc59db0c Rename and refactor CustomFieldForm 2020-01-29 10:59:18 -05:00
Saria Hajjar
561df015ea Fixes #3886: Config context cluster (group) 2020-01-26 10:53:58 +00:00
Saria Hajjar
16f72769b7 Cleaned the CustomField choice field 2020-01-23 18:54:37 +00:00
Saria Hajjar
017c92aae9 Explicitly use the value of the choice, instead of relying on __str__ 2020-01-23 17:37:51 +00:00
Saria Hajjar
ccb0c753ed Merge branch 'develop' into 568-csv-import-cf 2020-01-16 16:05:01 +00:00
Saria Hajjar
7b6b4f6e74 Fixed import choice name 2020-01-10 14:58:15 +00:00
Jeremy Stretch
ab7bb5c374 Merge branch 'develop' into develop-2.7 2020-01-02 17:21:15 -05:00
Saria Hajjar
3398ad9e0e Select2 for custom fields 2020-01-01 23:46:51 +00:00
Saria Hajjar
aa75fd0614 Add datetime widgets 2019-12-28 22:55:00 +00:00
Jeremy Stretch
5243334508 Cleanup for #3664 2019-12-11 15:55:33 -05:00
kobayashi
6f4eeaa83a implement 3664 2019-12-11 04:58:42 -05:00
Jeremy Stretch
0a72225ca9 ObjectChange.action to slug (#3569) 2019-12-05 16:30:15 -05:00
Jeremy Stretch
4a662c437f CustomField.filter_logic to slug 2019-12-04 21:09:02 -05:00
Jeremy Stretch
0e0cdc65c0 CustomField.type to slug 2019-12-04 21:01:50 -05:00
Jeremy Stretch
46eb858a26 Closes #3581: Introduce commit_default custom script attribute to not commit changes by default 2019-10-09 15:16:50 -04:00
Jeremy Stretch
b4acade70d Miscellaneous cleanup 2019-10-04 12:59:10 -04:00
Jeremy Stretch
7f641c77f5 Fixes #3514: Label TextVar fields when rendering custom script forms 2019-09-18 15:39:26 -04:00
Daniel Sheppard
7968515af0 Add filter for has local context data (#3159)
* Add filter for has local context data
* Broke out filter and form for re-use
* Fix missing StaticSelect2 import
* Fix missing BOOLEAN_WITH_BLANK_CHOICES import
* Fix class resolution
* Fix field ordering
* Fix PEP8 errors
2019-09-06 11:42:56 -05:00
Jeremy Stretch
3f87bdf5c4 Closes #3456: Enable bulk editing of tag color 2019-08-28 11:56:00 -04:00
Jeremy Stretch
0a18c86bfa Merge pull request #3423 from netbox-community/3415-custom-scripts
Add custom scripting
2019-08-26 14:06:22 -04:00
John Anderson
8bd1a48973 fixes #3428 - caching invalidation issues
Mitgate invalidation issues by using prefetch_related instead of select_related.
Also use invalidated_update instead of just update.
2019-08-19 01:53:39 -04:00
Jeremy Stretch
500eb63d9f Fix notice when form does not require user input 2019-08-14 10:18:25 -04:00
Jeremy Stretch
90bb0d47df Add option to commit database changes 2019-08-12 14:28:06 -04:00
Jeremy Stretch
1331072d92 Fix form field ordering 2019-08-12 11:13:16 -04:00
Jeremy Stretch
f602ffbca7 Initial work on custom scripts (#3415) 2019-08-12 11:13:16 -04:00
Jeremy Stretch
856651c4e8 Merge branch 'develop' into develop-2.6 2019-04-09 14:11:26 -04:00
Jeremy Stretch
197b0c5608 Closes #3052: Add Jinja2 support for export templates 2019-04-08 12:20:24 -04:00
John Anderson
c679dd4ff8 initial pass on migrating to custom tag model with color and comments fields 2019-02-20 03:52:47 -05:00
John Anderson
ce0c323de3 fixed #2910 - config context list and edit views not using select2 2019-02-18 21:10:15 -05:00
Jeremy Stretch
1246641fee Fixes #2687: Correct naming of before/after filters for changelog entries 2018-12-13 14:43:05 -05:00
Jeremy Stretch
0ce2930b81 Closes #2674: Enable filtering changelog by object type under web UI 2018-12-13 14:37:03 -05:00
Jeremy Stretch
f1a2a724b4 Formatting cleanup 2018-11-27 11:57:29 -05:00