X

Select Your Country

Turkey (Türkçe)Turkey (Türkçe) Worldwide (English)Worldwide (English)
X

Select Your Currency

Türk Lirası $ US Dollar

Using Q with Django limit_choices_to exclude limit_choices_to

Using Q with Django limit_choices_to exclude limit_choices_to
HomepageKnowledge BaseGeneralUsing Q with Django limit_choices_t...
Using Q with Django limit_choices_to exclude limit_choices_to

Q can be used for the conditions you want to exclude when filtering with limit_choices_to in your Django projects.

from django.db.models import Q
limit_choices_to=~Q(user__name='Hope)

Can't find the information you're looking for?

You have examined the knowledge base in detail, but if you cannot find the information you need,

Create a Support Ticket
Did you find it useful?
(459 times viewed. / 0 people found helpful.)