8767577ecd
15553 change graphql sub-queries from functions to types ( #15557 )
...
* 15553 change graphql list to types
* 15553 review changes
2024-03-29 14:54:31 -04:00
744be59a4d
Closes #14736 : Enable HTMX navigation globally ( #15158 )
...
* Enable HTMX boosting
* Refactor HTMX properties for tables
* Fix dashboard object list widget
* Disable scrolling to page content
* Fix initialization of TomSelect dropdowns after HTMX loading
* Replace formaction properties with hx-post
* Fix quick search field on object list view
* Reinitialize copy-to-clipboard buttons upon HTMX load
* Disable scrolling effect for intra-page navigation
* Introduce user preference for toggling HTMX navigation
* Enable HTMX navigation only when selected by user
* Pass htmx_navigation context
* Fix display of confirmation form when deleting an object
* Disable HTMX boosting for rack elevation SVG downloads
* Fix dyanmic form rendering
* Introduce htmx_boost template tag; enable HTMX for user menu
* Use out-of-band sap to update footer stamp
* Fix display of toasts after form submission
* Fix user preference selection
* Misc cleanup
* Rename render_partial() to htmx_partial()
* Add docstring to htmx_boost template tag
* Disable HTMX for user preferences form to force a full page refresh on changes
2024-03-28 11:51:38 -04:00
0cff4c9795
14799 Fix sync of scripts from data source ( #15303 )
...
* 14799 fix script creation from data-source
* 14799 dont cache module_scripts
* 14799 fix sync_classes call
2024-03-26 08:36:36 -04:00
817e009e4f
Closes #15490 : CustomValidator support for accessing related object attribute via dotted path
2024-03-25 11:57:58 -04:00
45c99e4477
9856 Replace graphene with Strawberry ( #15141 )
...
* 9856 base strawberry integration
* 9856 user and group
* 9856 user and circuits base
* 9856 extras and mixins
* 9856 fk
* 9856 update strawberry version
* 9856 update imports
* 9856 compatability fixes
* 9856 compatability fixes
* 9856 update strawberry types
* 9856 update strawberry types
* 9856 core schema
* 9856 dcim schema
* 9856 extras schema
* 9856 ipam and tenant schema
* 9856 virtualization, vpn, wireless schema
* 9856 fix old decorator
* 9856 cleanup
* 9856 cleanup
* 9856 fixes to circuits type specifiers
* 9856 fixes to circuits type specifiers
* 9856 update types
* 9856 GFK working
* 9856 GFK working
* 9856 _name
* 9856 misc fixes
* 9856 type updates
* 9856 _name to types
* 9856 update types
* 9856 update types
* 9856 update types
* 9856 update types
* 9856 update types
* 9856 update types
* 9856 update types
* 9856 update types
* 9856 update types
* 9856 GraphQLView
* 9856 GraphQLView
* 9856 fix OrganizationalObjectType
* 9856 single item query for schema
* 9856 circuits graphql tests working
* 9856 test fixes
* 9856 test fixes
* 9856 test fixes
* 9856 test fix vpn
* 9856 test fixes
* 9856 test fixes
* 9856 test fixes
* 9856 circuits test sans DjangoModelType
* 9856 core test sans DjangoModelType
* 9856 temp checkin
* 9856 fix extas FK
* 9856 fix tenancy FK
* 9856 fix virtualization FK
* 9856 fix vpn FK
* 9856 fix wireless FK
* 9856 fix ipam FK
* 9856 fix partial dcim FK
* 9856 fix dcim FK
* 9856 fix virtualization FK
* 9856 fix tests / remove debug code
* 9856 fix test imagefield
* 9856 cleanup graphene
* 9856 fix plugin schema
* 9856 fix requirements
* 9856 fix requirements
* 9856 fix docs
* 9856 fix docs
* 9856 temp fix tests
* 9856 first filterset
* 9856 first filterset
* 9856 fix tests
* 9856 fix tests
* 9856 working auto filter generation
* 9856 filter types
* 9856 filter types
* 9856 filter types
* 9856 fix graphiql test
* 9856 fix counter fields and merge feature
* 9856 temp fix tests
* 9856 fix tests
* 9856 fix tenancy, ipam filter definitions
* 9856 cleanup
* 9856 cleanup
* 9856 cleanup
* 9856 review changes
* 9856 review changes
* 9856 review changes
* 9856 fix base-requirements
* 9856 add wrapper to graphiql
* 9856 remove old graphiql debug toolbar
* 9856 review changes
* 9856 update strawberry
* 9856 remove superfluous check
---------
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com >
2024-03-22 12:56:30 -04:00
423c9813a2
Fix import statement
2024-03-22 09:32:57 -04:00
7b1a08a187
Move local_now() to utilities.datetime
2024-03-22 08:59:52 -04:00
6ac700e43f
Move object_type_identifier() & object_type_name() to utilities.object_types
2024-03-22 08:59:52 -04:00
8ad73e3f90
Rename content_type_identifier() and content_type_name()
2024-03-22 08:59:52 -04:00
ae8df77cc8
Move count_related() & dict_to_filter_params() to utilities.query
2024-03-22 08:59:52 -04:00
a49eb80f9e
Move dict_to_querydict() and normalize_querydict() to utilities.querydict
2024-03-22 08:59:52 -04:00
81ca455fef
Move array_to_range(), array_to_string(), deepmerge(), drange(), flatten_dict(), and shallow_compare_dict() to utilities.data
2024-03-22 08:59:52 -04:00
1d3efc90c0
Move utilities.utils.render_jinja2() to utilities.jinja2
2024-03-22 08:59:52 -04:00
c30d22335a
Move extras.jinja2.ConfigTemplateLoader to utilities.jinja2.DataFileLoader
2024-03-22 08:59:52 -04:00
2a3b85a32f
Move clean_html() & foreground_color() to utilities.html
2024-03-22 08:59:52 -04:00
b92d3245c8
Move serialize_object() & deserialize_object() to utilities.serialization
2024-03-22 08:59:52 -04:00
ef774319f4
Move NetBoxFakeRequest and copy_safe_request() from utilities.utils to utilities.request
2024-03-22 08:59:52 -04:00
3547ea376c
Move utilities.utils.get_viewname() to utilities.views
2024-03-22 08:59:52 -04:00
f49819ebc2
Move ConfigTemplateLoader from utilities.jinja2 to extras.jinja2
2024-03-22 08:59:52 -04:00
a9bb4c5c3e
Move choice sets from utilities.choices to netbox.choices
2024-03-22 08:59:52 -04:00
78b4fa5196
Closes #14279 : Pass current request to custom validators ( #15491 )
...
* Closes #14279 : Pass current request to custom validators
* Update custom validation docs
* Check that validator is a subclass of CustomValidator
2024-03-21 21:19:53 -04:00
72d3c17b48
Use FieldSet instances for all forms
2024-03-19 13:34:13 -04:00
8f03a19b5f
Introduce ObjectAttribute for displaying read-only instance attributes on forms
2024-03-19 13:34:13 -04:00
78bd7dec48
Merge branch 'develop' into feature
2024-03-15 12:32:54 -04:00
7350950e88
Fixes #15347 : Fix querying virtual machine contacts via GraphQL
2024-03-13 19:09:52 -04:00
8fe3f5e3fd
Closes #14366 : Enable custom links on ConfigContexts and ConfigTemplates
2024-03-13 14:44:41 -04:00
bea32aef71
Declare FilterSet fields as a tuple
2024-03-12 12:08:11 -04:00
313e63622b
Extend logic for validating filter class
2024-03-11 15:35:40 -04:00
b36a70d236
Add missing filters for reverse many-to-many relationships
2024-03-11 14:39:34 -04:00
6085e0bb0b
Test for missing ManyToManyField filters
2024-03-11 14:39:34 -04:00
16b422cbac
Add missing filters
2024-03-11 14:39:34 -04:00
6af12b1814
Add tests for missing FilterSet filters
2024-03-11 14:39:34 -04:00
78dd65219f
Closes #15357 : Rename CustomField.object_type to related_object_type ( #15366 )
2024-03-09 06:16:17 -05:00
663bd32464
10587 script pagination ( #15343 )
...
* 10587 temp commit
* 10587 temp commit
* 10587 fix migrations
* 10587 pagination
* 10587 pagination
* 10587 pagination
* 10587 review changes
2024-03-07 11:41:34 -05:00
40a654b21e
Use singular names for M2M field filters
2024-03-06 15:43:33 -05:00
5552f2a7dd
Rename ContentTypes REST API endpoint & resources
2024-03-06 15:30:59 -05:00
6f6d483ca5
Merge branch 'feature' into 15277-object-types
2024-03-05 08:52:07 -05:00
4533c8dae0
Rename sequences for ObjectType M2M tables
2024-03-04 12:17:32 -05:00
0e89f46601
#15277 : Clean up references to object types in templates
2024-03-04 11:49:39 -05:00
0419a69ae8
Clean up outdated references to ContentType
2024-03-04 10:46:34 -05:00
d538010069
Add GraphQL type for ObjectType
2024-03-04 10:06:28 -05:00
570f64784f
Update Tag.object_types to reference ObjectType
2024-03-04 09:51:32 -05:00
e0165539b3
Rename ImageAttachment.content_type to object_type
2024-03-04 08:33:44 -05:00
ce6b2666a9
Rename SavedFilter.content_types to object_types & use ObjectType proxy
2024-03-04 08:33:44 -05:00
bef17e5a95
Rename ExportTemplate.content_types to object_types & use ObjectType proxy
2024-03-04 08:33:44 -05:00
e51d71d7e6
Rename EventRule.content_types to object_types & use ObjectType proxy
2024-03-04 08:33:44 -05:00
ba514aceac
Rename CustomLink.content_types to object_types & use ObjectType proxy
2024-03-04 08:33:44 -05:00
aeeec284a5
Rename CustomField.content_types to object_types & use ObjectType proxy
2024-03-04 08:33:44 -05:00
0df68bf291
Rename ContentType proxy model to ObjectType
2024-03-04 08:33:44 -05:00
78e284c14f
Initialize dynamically-resolved serializers with nested=True
2024-02-27 14:56:36 -05:00