Задать вопрос

Тел: +7 965 3737 888

453

Просмотров

1

Ответов

Search in a model spanning relations

By popular demand an example of search in models that spans more realtions.

Keep a list of Q, filter the None away, feed the rest to .filter()

Credit goes to Carlo C8E Miron for the idea... cheers buddy! ;)

Вопрос полезен? Да0/Нет0
file_3452.py(1.4Кб)
None

Ответы (1):

Ответubernostrum:27.02.2007
Ответ полезен? Да0/Нет0

See also snippet 32, which (I think) is a slightly faster and cleaner way to do this.