mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
Closes #6338: Decimal fields are no longer coerced to strings in REST API
This commit is contained in:
@ -464,6 +464,7 @@ FILTERS_NULL_CHOICE_VALUE = 'null'
|
||||
REST_FRAMEWORK_VERSION = VERSION.rsplit('.', 1)[0] # Use major.minor as API version
|
||||
REST_FRAMEWORK = {
|
||||
'ALLOWED_VERSIONS': [REST_FRAMEWORK_VERSION],
|
||||
'COERCE_DECIMAL_TO_STRING': False,
|
||||
'DEFAULT_AUTHENTICATION_CLASSES': (
|
||||
'rest_framework.authentication.SessionAuthentication',
|
||||
'netbox.api.authentication.TokenAuthentication',
|
||||
|
Reference in New Issue
Block a user