Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Número de línea: 1 - "<Modelo: >" needs to have a value for field "id" before this many-to-many relationship can be used.
- def dehydrate_entidad_referencia(self, symp):
- if symp.entidad_referencia:
- return ", " .join([entidad.nombre for entidad in symp.entidad_referencia.all()])
- else:
- return "Ninguna"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement