A
A
Alexander Shendrik2015-06-21 09:34:18
Django
Alexander Shendrik, 2015-06-21 09:34:18

How to get all values ​​of one field of all models in django?

I have one model, I need to find out all the variations of the value of one field of the CharField type for all objects of this model. I discarded the idea of ​​writing a search loop myself, since I considered such an implementation to be rather slow.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
marazmiki, 2015-06-21
@TheSuperD20

distinct

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question