Friday, August 22, 2014

Creating a QuerySet where the presence of a row is dependent on other rows in the result

I have a problem where I need to define a QuerySet where the conditions for including one row depend on evaluating values in one or more other rows in the QuerySet.

Is there a way to manually construct a QuerySet by iterating over rows from another QuerySet and individually adding them to the new QuerySet?

--
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 django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/cffaa0af-f5db-4c48-950e-889b75fe688b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment