You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi there!
I was wondering if it's possibile to add some kind of option to specify a custom JSON encoder in AutoResponseView view.
I'm using this package https://github.com/nshafer/django-hashid-field and if I don't specify the specific JSON encoder while I'm using ModelSelect2Widget widget, it will throw an Object of type Hashid is not JSON serializable error.
@N1K1TAS95 thanks for reaching out and suggesting the improvement. I am usually not a big fan of adding too many settings. But I believe in this case a custom JSON encoder can be rather helpful. Would you care to contribute this feature yourself? Cheers, Joe
Hi there!
I was wondering if it's possibile to add some kind of option to specify a custom JSON encoder in
AutoResponseView
view.I'm using this package https://github.com/nshafer/django-hashid-field and if I don't specify the specific JSON encoder while I'm using
ModelSelect2Widget
widget, it will throw anObject of type Hashid is not JSON serializable
error.Here the
AutoResponseView
that works:Thanks a lot!
The text was updated successfully, but these errors were encountered: