Jeremy Stretch
18422e1d26
Closes #14326 : Move form mixins ( #14327 )
...
* Move form mixins from extras app to netbox app
* Remove obsolete extras/admin.py
2023-11-22 13:49:26 -05:00
Jeremy Stretch
a73ba00aa0
Closes #13299 : Improve options for controlling custom field visibility ( #14289 )
...
* Add ui_visible and ui_editable fields
* Extend migration to map new visible/editable values
* Remove ui_visibility field
* Update docs
2023-11-20 13:06:34 -05:00
Jeremy Stretch
e15647a2ce
Closes #14153 : Filter ContentTypes by supported feature ( #14191 )
...
* WIP
* Remove FeatureQuery
* Standardize use of proxy ContentType for models
* Remove TODO
* Correctly filter BookmarksWidget object_types choices
* Add feature-specific object type validation
2023-11-16 12:12:51 -05:00
Jeremy Stretch
8dcbd66de6
Closes #13427 : Public model registration ( #14152 )
...
* Initial work on #13427
* Clarify documentation
* Reference public models registry when populating models for ConfigTemplate context
2023-11-03 10:32:59 -04:00
Jeremy Stretch
edc4a35296
Initial work on #10244 : Protection rules ( #14097 )
2023-10-30 14:36:56 -04:00
Arthur Hanson
f5dd7d853a
13809 fix ConfigRevision edit if custom validators ( #13825 )
...
* 13809 fix ConfigRevision edit, check if custom validator JSON serializable
* 13809 check json rendering for all fields
* Refactor field initialization logic to more cleanly handle statically configured values
---------
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com >
2023-09-20 14:11:25 -04:00
Arthur Hanson
6e4b4a553b
12685 use markdown for custom fields added to form ( #13828 )
...
* 12685 use markdown for custom fields added to form
* 13809 change markdown to use utilities
* Add help_text for CustomField description indicating Markdown support
---------
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com >
2023-09-20 14:06:04 -04:00
Jeremy Stretch
9aa7444bf9
Fixes #13782 : Fix tag exclusion support for contact assignments
2023-09-18 11:08:49 -04:00
Arthur
487827c776
13768 fix typo
2023-09-15 09:40:27 -04:00
Jeremy Stretch
75b71890a4
Misc i18n cleanup
2023-09-11 15:59:50 -04:00
Jeremy Stretch
eb9a804914
#12591 : Add a dedicated view for the active config revision
2023-08-30 11:13:56 -04:00
Jeremy Stretch
2a4e3dd09f
Merge branch 'develop' into feature
2023-08-29 10:45:55 -04:00
Abhimanyu Saharan
4004966b16
fix content type filter on export template #13478
2023-08-17 15:29:21 -04:00
Jeremy Stretch
16bcb1dbb0
#13426 : Employ proper feature keys for image attachment & contact filter forms
2023-08-09 10:41:40 -04:00
Jeremy Stretch
d9f3637e25
Fixes #13361 : Extra choices field on custom field choice set form should not be required
2023-08-03 07:49:54 -04:00
Abhimanyu Saharan
1cc78be6ca
Adds custom field on webhook model ( #13336 )
...
* adds custom field on webhook model #11936
* adds tags on webhook model #11936
* Remove extraneous import; revert change to NetBoxModelForm (no longer needed)
---------
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com >
2023-08-01 14:05:47 -04:00
Arthur Hanson
b7a9649269
Closes #13149 : Wrap form field labels with gettext_lazy()
...
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com >
2023-07-31 12:52:38 -04:00
Jeremy Stretch
cf1b1a83eb
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
96ea0ac9c7
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
Jeremy Stretch
837be4d45f
Merge branch 'develop' into feature
2023-07-11 10:09:26 -04:00
Abhimanyu Saharan
cab7b76220
Fixes form rendering when scheduling_enabled is disabled ( #13123 )
...
* fixes form rendering when scheduling_enabled is disabled #13096
* Remove requires_input property from BaseScript; render form consistently
---------
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com >
2023-07-10 10:30:51 -04:00
Jeremy Stretch
6e222f8dce
Closes #8248 : User bookmarks ( #13035 )
...
* Initial work on #8248
* Add tests
* Fix tests
* Add feature query for bookmarks
* Add BookmarksWidget
* Correct generic relation name
* Add docs for bookmarks
* Remove inheritance from ChangeLoggedModel
2023-06-29 14:36:11 -04:00
Jeremy Stretch
1056e513b1
Closes #11541 : Support for limiting tag assignments by object type ( #12982 )
...
* Initial work on #11541
* Merge migrations
* Limit tags by object type during assignment
* Add tests for object type validation
* Fix form field parameters
2023-06-23 14:08:14 -04:00
Arthur Hanson
148278a74a
12591 config params admin ( #12904 )
...
* 12591 initial commit
* 12591 detail view
* 12591 add/edit view
* 12591 edit button
* 12591 base views and forms
* 12591 form cleanup
* 12591 form cleanup
* 12591 form cleanup
* 12591 review changes
* 12591 move check for restrictedqueryset
* 12591 restore view
* 12591 restore page styling
* 12591 remove admin
* Remove edit view for ConfigRevision instances
* Order ConfigRevisions by creation time
* Correct permission name
* Use RestrictedQuerySet for ConfigRevision
* Fix redirect URL
---------
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com >
2023-06-22 14:04:24 -04:00
Arthur Hanson
518fd8cca6
12794 change User ref to get_user_model ( #12905 )
...
* 12794 change User ref to get_user_model
* 12794 call get_user_model once in tests
* 12794 call get_user_model once in tests
* 12794 use settings.AUTH_USER_MODEL for FK reference
2023-06-22 08:26:50 -04:00
Abhimanyu Saharan
ca0e7be637
Adds bulk import for journal entry ( #12485 )
...
* adds bulk import for journal entry #12122
* lint fix
* Add kind as CSVChoiceField on JournalEntryImportForm
---------
Co-authored-by: jeremystretch <jstretch@netboxlabs.com >
2023-05-05 09:57:09 -04:00
Abhimanyu Saharan
42346702a1
Adds image attachment list view ( #12487 )
...
* adds image attachment list view #11932
* fixed typo
* Update netbox/extras/tables/tables.py
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com >
* Update netbox/extras/forms/filtersets.py
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com >
* changes as per review
* Disable ordering by size (not stored in database)
---------
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com >
2023-05-05 09:48:13 -04:00
jeremystretch
c08c7dda50
Closes #12292 : Replace SelectSpeedWidget and SelectDurationWidget with NumberWithOptions
2023-04-18 16:33:43 -04:00
jeremystretch
9caa7f6b7c
Move SyncedDataMixin from extras to core
2023-04-18 15:18:19 -04:00
jeremystretch
b167153186
Enable scheduling_enabled parameter for reports
2023-04-18 08:45:31 -04:00
jeremystretch
197c6a1cbf
Add scheduling_enabled parameter for scripts
2023-04-18 08:45:31 -04:00
Jeremy Stretch
8b040ff930
Closes #12129 : Enable automatic synchronization of objects when DataFiles are updated ( #12262 )
...
* Closes #12129 : Enable automatic synchronization of objects when DataFiles are updated
* Cleanup
2023-04-17 10:35:17 -04:00
Jeremy Stretch
d470848b29
Closes #12246 : General cleanup of utilities modules
...
* Clean up base modules
* Clean up forms modules
* Clean up templatetags modules
* Replace custom simplify_decimal filter with floatformat
* Misc cleanup
* Merge ReturnURLForm into ConfirmationForm
* Clean up import statements for utilities.forms
* Fix field class references in docs
2023-04-14 10:33:53 -04:00
jeremystretch
59a6b3e71b
Merge branch 'develop' into feature
2023-04-12 17:38:16 -04:00
Abhimanyu Saharan
2c07762b7a
Added optional user and group on custom field ( #12206 )
...
* added group and user model to object_type
* Update netbox/utilities/utils.py
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com >
---------
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com >
2023-04-10 12:40:13 -04:00
kkthxbye
278f2b173a
Fixes #11431 - Disallow changing customfield type after creation ( #11449 )
...
* Disallow changing customfield type after creation
* Fix test_api.CustomFieldTest
---------
Co-authored-by: kkthxbye-code <>
2023-04-10 10:13:08 -04:00
jeremystretch
15590f1f48
Merge branch 'develop' into feature
2023-03-28 14:19:08 -04:00
Abhimanyu Saharan
1d2335d578
Updated _schedule_at to use local time when _interval is set ( #12006 )
...
* updated _schedule_at to use local time when _interval is set
* updated schedule_at to use local time when interval is set
2023-03-28 10:19:18 -04:00
jeremystretch
7d64e5bc62
#12058 : Fix initial JSON population
2023-03-28 10:00:15 -04:00
Arthur Hanson
654e32cbbe
11933 saved filters clone of content-types and add m2m field cloning ( #12014 )
...
* 11933 saved filters clone of content-types and add m2m field cloning
* Fix JSON rendering
* Add content_types to CustomLink.clone()
---------
Co-authored-by: jeremystretch <jstretch@netboxlabs.com >
2023-03-28 09:53:57 -04:00
jeremystretch
40572b543f
Rename JobResult to Job and move to core
2023-03-27 14:20:13 -04:00
jeremystretch
00088cba6d
#11559 : Add device config API endpoint & cleanup
2023-03-21 17:00:06 -04:00
jeremystretch
d6afc125e5
#11693 : Clean up ExportTemplate model form
2023-03-21 14:15:37 -04:00
jeremystretch
2b3b9517d2
#9073 : Fix form behavior when disassociating a ConfigContext from a DataFile
2023-03-20 15:42:23 -04:00
jeremystretch
5cd3ad0b12
Cleanup & docs
2023-03-14 15:44:16 -04:00
Arthur
f7150645a1
8749 clone custom fields
2023-03-14 15:44:16 -04:00
jeremystretch
2a9178af12
Merge branch 'develop' into feature
2023-03-13 11:58:37 -04:00
Aron Bergur Jóhannsson
fa60f9d2a8
Closes #11294 : Markdown Preview ( #11894 )
...
* MarkdownWidget
* Change border and color of active markdown tab
* Fix template name typo
* Add render markdown endpoint
* Static assets for markdown widget
* widget style fix and unique ids based on name
* Replace SmallTextArea with SmallMarkdownWidget
* Clear innerHTML before swapping
* render markdown directly in template
* change render markdown view path
* remove small markdown widget
* Simplify rendering logic
* Use a form to clean input Markdown data
---------
Co-authored-by: Jeremy Stretch <jstretch@ns1.com >
2023-03-09 08:21:13 -05:00
jeremystretch
697feed257
Add type_job_start & type_job_end to Webhook
2023-03-07 18:01:32 -05:00
jeremystretch
c44eb65993
Closes #11325 : Move help_texts from model forms to models
2023-03-01 17:31:54 -05:00