I
I
Igor Tkachenko2014-06-25 06:58:14
Django
Igor Tkachenko, 2014-06-25 06:58:14

What is the best way to implement a mat filter in django?

I recently started learning django, and the question arose - how can I implement a mat filter in the text in django? Through for and then if I think it will not be productive.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Semyon Voronov, 2014-06-25
@foozzi

If we are talking about checking at the backend level, then it would be rational to use Sets

s.issubset(t) # test whether every element in s is in t

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question