Arthur
835012f2ed
15838 use naturalday for date not naturaltime
2024-04-26 16:19:21 -04:00
Tobias Genannt
5af3c659a5
Fix #15826 : Added new group and user models
2024-04-25 09:23:27 -04:00
Arthur Hanson
ded2fe9471
15809 Mark unions as nullable in GraphQL where appropriate ( #15824 )
...
* 15809 mark unions as nullable where appropriate
* 15809 fix tests
* 15809 fix tests
2024-04-25 09:19:19 -04:00
Jeremy Stretch
e3c418263e
Fixes #15778 : Fix bulk edit/delete functionality when HTMX is enabled
2024-04-22 14:31:39 -04:00
Jeremy Stretch
46bd62fdc9
Merge branch 'develop' into feature
2024-04-22 13:23:42 -04:00
Jeremy Stretch
e87877b6ea
Fixes #15771 : Show id field as supported on all bulk import forms
2024-04-22 11:08:36 -04:00
Arthur Hanson
928014c766
5509 Add Test cases for Custom Fields ( #12312 )
...
* 5509 add content type data to model tests create and update
* 5509 update use cf form data
* 5509 update tests to use CustomFieldTypeChoices
* 5509 update tests to check custom fields
* Simplify custom fields used for testing
* Move custom field data functions to testing.utils
* Move validate_custom_field_data() into assertInstanceEqual()
---------
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
2024-04-17 16:05:05 -04:00
Jeremy Stretch
75d6bfe42f
Closes #15736 : Remove annotated_date() template filter and annotated_now() template tag
2024-04-17 14:09:07 -04:00
Jeremy Stretch
77a4300888
Closes #15618 : Always use ISO 8601 date & time formatting ( #15737 )
...
* Introduce the isodate(), isotime(), and isodatetime() template filters
* Display the relative time on mouse hover
* Render journal entry times in ISO 8601 format
* Use ISO 8601 format when displaying dates & times in a table
* Standardize the use of DateTimeColumn across all tables
2024-04-17 11:46:47 -04:00
Jeremy Stretch
4e4c277711
Fixes #15652 : Fix the display of error messages after attempting to delete an object
2024-04-15 15:47:43 -04:00
Jeremy Stretch
d34f188d40
Fixes #15637 : Fix rendering of links from within embedded tables w/HTMX enabled ( #15642 )
...
* Add htmx_table to __all__
* Fix dropdown menu clipping
* Fix loading links from within embedded tables
* Fix rendering of object deletion warning
2024-04-05 14:22:09 -04:00
Jeremy Stretch
c8d9d9358e
Closes #15464 : Move permission assignments to user & group models ( #15554 )
...
* Move user & group M2M assignments for ObjectPermission
* Restore users & groups fields on ObjectPermission serializer
2024-03-29 14:57:16 -04:00
Jeremy Stretch
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
Jeremy Stretch
6973228825
Closes #15465 : Clean up settings.py
2024-03-22 15:15:37 -04:00
Arthur Hanson
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
Jeremy Stretch
eb3aa7cb36
Move utilities.utils.get_related_models() to utilities.relations
2024-03-22 08:59:52 -04:00
Jeremy Stretch
b86c8a9524
Remove utilities.utils.dynamic_import()
2024-03-22 08:59:52 -04:00
Jeremy Stretch
7b1a08a187
Move local_now() to utilities.datetime
2024-03-22 08:59:52 -04:00
Jeremy Stretch
6ac700e43f
Move object_type_identifier() & object_type_name() to utilities.object_types
2024-03-22 08:59:52 -04:00
Jeremy Stretch
8ad73e3f90
Rename content_type_identifier() and content_type_name()
2024-03-22 08:59:52 -04:00
Jeremy Stretch
ae8df77cc8
Move count_related() & dict_to_filter_params() to utilities.query
2024-03-22 08:59:52 -04:00
Jeremy Stretch
3b4898adea
Move prepare_cloned_fields() to utilities.querydict
2024-03-22 08:59:52 -04:00
Jeremy Stretch
a49eb80f9e
Move dict_to_querydict() and normalize_querydict() to utilities.querydict
2024-03-22 08:59:52 -04:00
Jeremy Stretch
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
Jeremy Stretch
1d3efc90c0
Move utilities.utils.render_jinja2() to utilities.jinja2
2024-03-22 08:59:52 -04:00
Jeremy Stretch
c30d22335a
Move extras.jinja2.ConfigTemplateLoader to utilities.jinja2.DataFileLoader
2024-03-22 08:59:52 -04:00
Jeremy Stretch
b2e03805ab
Remove obsolete function utilities.utils.csv_format()
2024-03-22 08:59:52 -04:00
Jeremy Stretch
2a3b85a32f
Move clean_html() & foreground_color() to utilities.html
2024-03-22 08:59:52 -04:00
Jeremy Stretch
b92d3245c8
Move serialize_object() & deserialize_object() to utilities.serialization
2024-03-22 08:59:52 -04:00
Jeremy Stretch
bbb8b7d010
Move to_grams() & to_meters() from utilities.utils to utilities.conversion
2024-03-22 08:59:52 -04:00
Jeremy Stretch
ef774319f4
Move NetBoxFakeRequest and copy_safe_request() from utilities.utils to utilities.request
2024-03-22 08:59:52 -04:00
Jeremy Stretch
3547ea376c
Move utilities.utils.get_viewname() to utilities.views
2024-03-22 08:59:52 -04:00
Jeremy Stretch
2719fa3b5a
Move utilities.utils.highlight_string() to utilities.html.highlight()
2024-03-22 08:59:52 -04:00
Jeremy Stretch
950954a3db
Move title() from utilities.utils to utilities.string
2024-03-22 08:59:52 -04:00
Jeremy Stretch
73bb175afa
Rename resolve_permission_ct() to resolve_permission_type()
2024-03-22 08:59:52 -04:00
Jeremy Stretch
f48d1c9410
custom_deconstruct() should not ignore TimeZoneField
2024-03-22 08:59:52 -04:00
Jeremy Stretch
f49819ebc2
Move ConfigTemplateLoader from utilities.jinja2 to extras.jinja2
2024-03-22 08:59:52 -04:00
Jeremy Stretch
aa9a40f268
Remove unused MACAddressFilter
2024-03-22 08:59:52 -04:00
Jeremy Stretch
d924eaf4da
Remove the sha256_hash() utility function
2024-03-22 08:59:52 -04:00
Jeremy Stretch
19bb808936
Move utilities.api.rest_api_server_error() to utilities.error_handlers.handle_rest_api_exception()
2024-03-22 08:59:52 -04:00
Jeremy Stretch
a9bb4c5c3e
Move choice sets from utilities.choices to netbox.choices
2024-03-22 08:59:52 -04:00
Jeremy Stretch
99144031b7
Refactor get_view_name()
2024-03-22 08:59:52 -04:00
Jeremy Stretch
32edb8dfe6
Misc cleanup & documentation for FieldSets
2024-03-19 13:34:13 -04:00
Jeremy Stretch
708d93c9e0
Use render_fieldset() for bulk edit & filter forms
2024-03-19 13:34:13 -04:00
Jeremy Stretch
72d3c17b48
Use FieldSet instances for all forms
2024-03-19 13:34:13 -04:00
Jeremy Stretch
3b28e8e615
Refactor form rendering components & add docstrings
2024-03-19 13:34:13 -04:00
Jeremy Stretch
2aaa552067
Replace custom form templates with TabbedFieldGroups
2024-03-19 13:34:13 -04:00
Jeremy Stretch
8f03a19b5f
Introduce ObjectAttribute for displaying read-only instance attributes on forms
2024-03-19 13:34:13 -04:00
Jeremy Stretch
33b9ebb201
Ignore fields which are not included on the form (dynamic rendering)
2024-03-19 13:34:13 -04:00
Jeremy Stretch
4c7b6fcec0
Enable tabbed group fields in fieldsets
2024-03-19 13:34:13 -04:00