Arthur Hanson
83bebc1bd2
Closes #13132 : Wrap verbose_name and other model text with gettext_lazy() (i18n)
...
---------
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com >
2023-07-31 11:28:07 -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
d52c18ce38
Merge branch 'develop' into feature
2023-07-28 10:36:09 -04:00
Fabian Geisberger
d075e7a66a
Fixes #13237 - Allow unauthenticated api access to content-types.
2023-07-27 15:47:34 -04:00
kkthxbye-code
8b8adfbbbb
Use class_name instead of name to get script results
2023-07-27 15:32:29 -04:00
Jeremy Stretch
9b6e32896d
Clean up users & account URLs
2023-07-25 15:48:40 -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
Abhimanyu Saharan
bc7678c716
fixes content type lookups when db is uninitialized #13116
2023-07-07 09:43:33 -04:00
Jeremy Stretch
63ba9fb38c
Fixes #11335 : Default manager for ObjectChange should filter by installed apps ( #11709 )
...
* Fixes #11335 : Default manager for ObjectChange should filter by installed apps
* Employ canonical model discovery mechanism
* Move filtering logic to valid_models() queryset method
* fixed import to avoid content type does not exist
* Cleanup
---------
Co-authored-by: Abhimanyu Saharan <desk.abhimanyu@gmail.com >
2023-07-05 11:39:35 -04:00
Abhimanyu Saharan
3307bd200c
Fixes syntax error on reports ( #12997 )
...
* fixes syntax error on reports #12842
* remove the extra filter #12842
2023-06-29 16:02:39 -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
Alexander Votteler
f1858a7c23
Fixes #13011 : Allow comma in custom links
2023-06-27 08:00:33 -04:00
Jeremy Stretch
290ffd408a
Fixes #12977 : Fix URL parameters for object count dashboard widgets ( #12991 )
...
* Fixes #12977 : Introduce dict_to_querydict() to ensure proper handling of QueryDicts
* Remove unused import
2023-06-26 14:21:26 -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
69b818ed33
12237 update to Django 4.2 / psycopg3 ( #12916 )
...
* 12237 upgrade django and psycopg
* 12237 add migration
* 12237 rename migration
* 12237 update requirements
* 12237 fix migration
* Update base requirements
---------
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com >
2023-06-23 10:38:08 -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
Jeremy Stretch
e7edccd9ba
Merge branch 'develop' into feature
2023-06-20 14:53:07 -04:00
Abhimanyu Saharan
93175888f0
add color to ChangeActionChoices #12828
2023-06-15 08:48:36 -04:00
Arthur
e635f0defd
Merge branch 'develop' into feature
2023-06-14 16:32:56 -07:00
Arthur
b4a3156046
9077 audit alters_data=True
2023-06-14 14:23:55 -04:00
Abhimanyu Saharan
928a34674e
change link parsing from quote_plus to quote #12822
2023-06-14 14:16:04 +05:30
Abhimanyu Saharan
e7f689bc52
Fixes incorrectly handled type error when list of objects is found in data ( #12593 )
...
* fixes incorrectly handled type error when list of objects is found in data #9876
* fixes incorrectly handled type error when list of objects is found in data #9876
* fixes incorrectly handled type error when list of objects is found in data #9876
2023-05-31 15:44:59 -04:00
jeremystretch
bca9d0fa8a
Closes #12599 : Apply filter parameters to links in object count dashboard widgets
2023-05-30 16:31:34 -04:00
jeremystretch
9b8ab1c1f7
Fixes #12742 : Object counts dashboard widget should support URL-compatible query filters
2023-05-30 15:44:43 -04:00
Abhimanyu Saharan
d7ca453f26
Adds hide-if-unset to custom field ( #12723 )
...
* adds hide-if-unset to custom field #12597
* moved hide logic from template to python
* fix indentation
* Update logic for omit_hidden under get_custom_fields()
* Update docs
* Account for False values
---------
Co-authored-by: jeremystretch <jstretch@netboxlabs.com >
2023-05-30 09:42:37 -04:00
Abhimanyu Saharan
9b9a559e0c
Adds image preview back on the table ( #12739 )
...
* adds image preview on image attachment #12627
* adds bootstrap initialization for hx-trigger=load #12627
---------
Co-authored-by: jeremystretch <jstretch@netboxlabs.com >
2023-05-30 09:41:32 -04:00
Jeremy Stretch
24a51dd86e
Fixes #11539 : Use BooleanFilter for 'empty' lookups ( #11784 )
...
* Use BooleanFilter for 'empty' lookups
* Always use BooleanFilter for 'empty' lookups
* Restore Empty lookup logic
2023-05-25 15:20:08 -04:00
jeremystretch
bf1c191b2e
Fixes #12694 : Strip leading & trailing whitespace from custom link URL & text
2023-05-24 15:45:24 -04:00
Abhimanyu Saharan
2204735e9f
Adds rq retry options ( #12588 )
...
* adds rq retry options #12327
* Clean up docs; disable retries of failed jobs by default
* Pass a Retry object only if RQ_RETRY_MAX is non-zero
---------
Co-authored-by: jeremystretch <jstretch@netboxlabs.com >
2023-05-16 14:10:44 -04:00
Arthur
eeb15ab5d1
12594 add config context to object count / list widget
2023-05-16 10:52:23 -04:00
Arthur Hanson
21f4761335
12468 disallow double underscores in custom field names ( #12523 )
...
* 12468 disallow double underscores in custom field names
* 12468 disallow double underscores in custom field names
* 12468 review changes
* 12468 correct migration
* 12468 use inverse match
* 12468 use inverse match
* Add test for invalid custom field names
---------
Co-authored-by: jeremystretch <jstretch@netboxlabs.com >
2023-05-12 16:08:57 -04:00
jeremystretch
39fd64b2ef
Fixes #12570 : Disable ordering of synchronized object tables by the synced attribute
2023-05-12 11:08:32 -04:00
Abhimanyu Saharan
e71a98499f
Adds BANNER_MAINTENANCE config ( #12555 )
...
* adds BANNER_MAINTENANCE config #12554
* changes as per review
* lint fix
* Fix admin form field widget
---------
Co-authored-by: jeremystretch <jstretch@netboxlabs.com >
2023-05-12 09:54:59 -04:00
jeremystretch
a29a07ed26
Fixes #12463 : Fix the association of completed jobs with reports & scripts in the REST API
2023-05-05 10:17:13 -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
Arthur Hanson
9909213c0d
12416 warning for missing script file ( #12456 )
...
* 12416 warning for missing script file
* 12416 widen exception catching for internal script error
* Update netbox/extras/models/scripts.py
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com >
* 12416 update from review feedback
---------
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com >
2023-05-05 09:37:38 -04:00
Arthur
f3826e6235
fix runscript command
2023-05-04 16:18:44 -04:00
Arthur Hanson
5036020dc0
12433 update object list widget to correctly parameterize urls ( #12434 )
...
* 12433 update object list widget to correctly parameterize urls
* Update netbox/extras/dashboard/widgets.py
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com >
* 12433 fix indent
* Correct per_page query parameter
---------
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com >
2023-05-03 09:20:53 -04:00
Austin de Coup-Crank
b14a514b47
Closes 10759: Enable markdown support for custom field descriptions ( #12344 )
...
* enable markdown in custom field descriptions
* Closes #10759 : Enable markdown support for custom field descriptions
---------
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com >
2023-05-02 16:47:22 -04:00
jeremystretch
cc3b95bdb0
Fixes #12400 : Validate default values for object and multi-object custom fields
2023-05-02 09:35:25 -04:00
jeremystretch
9319cffb1c
Fixes #12384 : Add a three-second timeout for RSS reader widget
2023-05-01 16:19:39 -04:00
kkthxbye-code
aabaeec1d7
Add ObjectChange as a valid option for ObjectListWidget and ObjectCountsWidget
2023-04-28 12:17:39 +02:00
jeremystretch
6109bef700
Merge branch 'develop' into feature
2023-04-27 12:11:08 -04:00
x64x6a
4355085124
Fixes #12355 : Exclude additional characters from url encode
2023-04-26 15:53:14 -07:00
jeremystretch
f49e4ee512
Merge branch 'develop' into feature
2023-04-26 15:09:51 -04:00
Darek
89fa546a14
Merge pull request from GHSA-92x4-vfjf-rmf7
2023-04-21 15:08:04 -04:00