check() is called 
here: 
https://github.com/django/django/blob/d7b9aaa366dd54ecc3142c588162e3adc7c2f7ac/django/db/models/base.py#L1265
It can be used to implement configuration 
checks. 
https://docs.djangoproject.com/en/1.11/topics/checks/#field-model-manager-and-database-checks

creation_counter appears to be used to make sure the managers are always 
initialised in the same order as they were defined in the model (for models 
that use multiple managers).
https://github.com/django/django/blob/a4092af3d33b2e7a5f05f6be3bdf8298d32d9ff8/django/db/migrations/state.py#L526

On Saturday, 14 October 2017 16:13:24 UTC+1, Naveen Yadav wrote:
>
> I have few questions about manager class 
> <https://github.com/django/django/blob/master/django/db/models/manager.py>
>
> *creation_counter* is used to keep track of Manager's instance being 
> created, what is the motivation behind this ?
> and
> what is the purpose of* check() *which returns empty list ?
>
>
> Thanks.
>
>
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers  (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/django-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-developers/19aa9e5d-e089-4e59-9385-2af67a8bc8a7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to