I want to return the 2 or n records matches that appear but shows me the following exception
Exception Value:
get () returned more than one File - it returned 2!
The Query that returns the exception
queryModeloArchivo= Archivo.objects.get(modelo=query2Model, status=1)
queryArchivo= queryModeloArchivo.modelo
If I change the query to filter, with this I get all the records that is to say the 2 registers:
queryModeloArchivo= Archivo.objects.filter(modelo=query2Model, status=1)
However, I can no longer access the properties of the queryModelFile model, that is:
queryArchivo= queryModeloArchivo.modelo