Add model to QuerySet to support django-rest-framework 3

This commit is contained in:
Kobi Tal 2022-07-18 17:55:51 +03:00
parent 232a8d29ad
commit 272729153c

View File

@ -292,6 +292,7 @@ class QuerySet(object):
Initializer. It is possible to create a queryset like this, but the standard
way is to use `MyModel.objects_in(database)`.
"""
self.model = model_cls
self._model_cls = model_cls
self._database = database
self._order_by = []