Monday, December 22, 2014

Difference between Q and filter and exclude

Is there any difference, either functional or performance wise,
between these 2 constructs:

Q(f=1) and filter(f=1)

Or, between these 2:

(~Q(f=1)) and exclude(f=1)

--
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/CACwCsY6YZmJAihQGavHv274G1HAPx5T1oJ_%3DoJ2BFfPP7Ag0jg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment