using distinct in django query

Posted by Hulk on Stack Overflow See other posts from Stack Overflow or by Hulk
Published on 2010-05-25T12:09:28Z Indexed on 2010/05/25 12:11 UTC
Read the original article Hit count: 503

There is a column as designation in the defaults table,How to get the distinct designation values from defaults table

In the below the distinct applies on the id field, this need to be on designation field

      def = defaults.objects.filter(name=sc).distinct()

And can some one explain what is flat=true condition

Thanks..

© Stack Overflow or respective owner

Related posts about django

Related posts about django-models