Django - coercing to Unicode: need string or buffer, tuple found

0

I am putting together an app that handles requests to send packages and when generating a new request for a shipment I was stuck with the following.

This is the request model.

As you can see I am trying to bring 2 fk from models User .
The idea is that on the page when entering a new application the id_cliente and the nom_cliente are related, so that selecting id or nom the other is completed automatically.
I'm still not sure how to get the id_cliente and nom_cliente related.

models.py client

  

The problem is that when I do this the page gives me the following   error :

I'm half lost and stuck with this issue.

Thanks and regards.

    
asked by Alex 01.12.2018 в 15:57
source

0 answers