rojoca / django-rest-inertia

A django rest framework adapter for inertia https://inertiajs.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Exception response.data raises an error in serializer

Billybob opened this issue · comments

Hi,

    data.update(instance.inertia.data)
ValueError: too many values to unpack (expected 2)

I resolve my pb like this

if response.data:
    # Get full details (message & code)
    full_details = exc.get_full_details()
    # add the errors to the users session
    request.session["errors"] = full_details
    response.data = {}

@Billybob thanks for trying this out, just noticed you had posted these issues. I have basically been copying code from an application I am building to this repo without much thought, but I'm about to launch my app and following that will look to get this ready for pypi

Not sure what your experience is so far. I have found it relatively stable but that's probably peculiar to my use case.

Hi, good news !!!
I am currently using it in a project and it works really well (with some little hacks) and I am very very satisfied with the application.
Big thank you for this package!!!