Saturday, July 23, 2016

Re: When it make sense to use a different name for a custom manager of the Django`s model?

https://docs.djangoproject.com/en/1.9/topics/db/managers/#modifying-a-manager-s-initial-queryset

Note the difference between overriding the default queryset (called "objects" by Django) vs creating your own - in the example shown, it is called "dahl_objects" (but of course should be a name that makes sense for your app).

On Saturday, 23 July 2016 12:32:32 UTC+2, Seti Volkylany wrote:
If why know good article about it, send me link, I will resolve of itself.

--
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 post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/415c3f1c-4d3d-41f5-b2e5-49c3b7db7e1e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment