Hi Carl,

Thruthfully some part of my reason for forking was that I was running an 
older version of Django which didn't have custom user models. In that case 
it's a bit more difficult to override the manager and I've seen quite a few 
external projects (accidently) do something like "User.objects.all()" and 
doing an if or loop around it. Quite problematic with a few million users.

Regardless, it still requires forking either Django or all external 
projects (in case of different models) so the problem is not solved by 
custom managers.


On Wednesday, November 19, 2014 3:52:52 AM UTC+1, Carl Meyer wrote:
>
> Hi Rick, 
>
> On 11/18/2014 11:59 AM, Rick van Hattem wrote: 
> [snip] 
> > In all but the most basic Django projects I've seen problems like these. 
> > Sane defaults won't hurt anyone and solves issues for people with larger 
> > systems. And running forks of Django seems counter productive as well. 
>
> As a side note -- I'm not sure why running a fork of Django should be 
> necessary. All the suggestions you've made so far in this thread could 
> be implemented in a custom QuerySet subclass, and custom QuerySet 
> classes can be hooked into your models via a custom Manager (which can 
> even be created for you by Manager.from_queryset). Create an abstract 
> base Model using this Manager, inherit all your models from it, and you 
> can get the behaviors you want throughout your system without forking 
> Django. 
>
> Carl 
>
>

-- 
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 django-developers+unsubscr...@googlegroups.com.
To post to this group, send email to django-developers@googlegroups.com.
Visit this group at http://groups.google.com/group/django-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-developers/40a05cec-7914-40c6-a4f2-2068804d2275%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to