Re: Model manager attributes

2017-10-14 Thread Tomer Chachamu
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

Model manager attributes

2017-10-14 Thread Naveen Yadav
I have few questions about manager class *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 ?