Django | QuerySet API reference | Django documentation

Django | QuerySet API reference | Django documentation

list(). Force evaluation of a QuerySet by calling list() on
it. For example:

entry_list = list(Entry.objects.all())

你可能感兴趣的:(reference)