https://docs.djangoproject.com/en/3.1/ref/models/instances/#django.db.models.Model
https://github.com/django/django/blob/64a0d1ef6e7a6739148996e9584bbb61fe3dcc60/django/db/models/base.py#L404
https://docs.djangoproject.com/en/3.1/ref/models/querysets/
https://github.com/django/django/blob/64a0d1ef6e7a6739148996e9584bbb61fe3dcc60/django/db/models/query.py#L175On Sunday, February 28, 2021 at 2:59:56 AM UTC+6 aysha...@gmail.com wrote:
Hello everyone,I was just learning Django and had a doubt.while making django models classes,In CONSOLE, the objects of the models were returning as query setsThe queryset is a class...."my question is whether query set is a parent class models.Model?".I wanted to know how these 2 classes are related..If I am wrong not making sense :) please do correct me, I am a beginner in Django and still have n't yet completely worked out how django models work.Thank you!!
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/ef2968d0-39a1-4d91-90f2-96b1678f7a6bn%40googlegroups.com.
No comments:
Post a Comment