X
X

Select Your Currency

Türk Lirası $ US Dollar
X
X

Select Your Currency

Türk Lirası $ US Dollar
Yıllık Satın Alımlarda %15 İndirim: Şimdi Tasarruf Edin! Detaylı Bilgi İçin Tıklayın!

Knowledge Base

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?
(101 times viewed. / 0 people found helpful.)