MCPcopy Index your code
hub / github.com/MongoEngine/mongoengine / all_fields

Method all_fields

mongoengine/queryset/base.py:1132–1142  ·  view source on GitHub ↗

Include all fields. Reset all previously calls of .only() or .exclude(). :: post = BlogPost.objects.exclude('comments').all_fields()

(self)

Source from the content-addressed store, hash-verified

1130 return queryset
1131
1132 def all_fields(self):
1133 """Include all fields. Reset all previously calls of .only() or
1134 .exclude(). ::
1135
1136 post = BlogPost.objects.exclude('comments').all_fields()
1137 """
1138 queryset = self.clone()
1139 queryset._loaded_fields = QueryFieldList(
1140 always_include=queryset._loaded_fields.always_include
1141 )
1142 return queryset
1143
1144 def order_by(self, *keys, __raw__=None):
1145 """Order the :class:`~mongoengine.queryset.QuerySet` by the given keys.

Callers 2

scalarMethod · 0.80
test_all_fieldsMethod · 0.80

Calls 2

cloneMethod · 0.95
QueryFieldListClass · 0.90

Tested by 1

test_all_fieldsMethod · 0.64