Hello, Matthew Pava, thank you for your answer. 
This is probably the solution which I'm going to use if there isn't anything 
better, but overall I don't like this approach for a few reasons: 

1) Dict keys are unordered, I would prefer to be ordered as requested (or as 
defined in the Model) I guess with some help from _meta.fields I can partially 
solve this)
2) . values() changes the queryset, I'm not sure if this won't have some side 
effects of the final result?
3) The whole approach of evaluating the queryset + picking the first item is 
just looking hacky. But as I already said If there is nothing better I will go 
for it.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/7d3ecf53-ccad-4620-b34b-48c1788dba6a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to