|
3. select query how to write in django model/view:
I wanted to know is there anything equivalent to:
Like Django tutorial says:
fetches all the objects with the given condition. It is like:
But I want to make a list of only one column Entry.objects.values_list('column_name', flat=True).filter(condition) 4. let us consider the count() method with example
solution: =======
|
How to work with models in django(Important)-2
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment