Re: User.objects.active() support.

2011-09-30 Thread Luke Plant
On 30/09/11 09:56, tWoolie wrote: > This is an example of the template code that I add to djangobb by > overriding it's templates. djangobb currently has no custom User > subclass that it injects into it's moderator relationship, and hence i > have to do a filter in the template, or modify

Re: User.objects.active() support.

2011-09-30 Thread tWoolie
The thing is that I believe django as a whole would benefit from this kind of functionality. The whole point of custom managers is to add functionality, not just to your app, but to every app that FKs against your models. In the case of contrib.auth, this functionality is really handy spanning

Re: User.objects.active() support.

2011-09-28 Thread Tomasz Zielinski
I'm the author of #16611 ticket and after some consideration I also think that proxy models are the way to go for such customizations. -- You received this message because you are subscribed to the Google Groups "Django developers" group. To view this discussion on the web visit

Re: User.objects.active() support.

2011-09-26 Thread Prometheus
On Sep 25, 8:02 am, tWoolie wrote: > I never saw that ticket. I've been looking at it purely from the > perspective of trying to inject it into the model in my app to get > around doing expensive filtering in my template. > I see Jacob's point that saving

Re: User.objects.active() support.

2011-09-25 Thread tWoolie
I never saw that ticket. I've been looking at it purely from the perspective of trying to inject it into the model in my app to get around doing expensive filtering in my template. I see Jacob's point that saving a few chars in python is not worth it for the cost of having to read docs to figure

Re: User.objects.active() support.

2011-09-23 Thread Aymeric Augustin
2011/9/23 tWoolie : > I've submitted a pull request (https://github.com/django/django/pull/ > 51) for an active() relatedmanager method on the models class. I > wanted to get some feedback from other devs about inclusion into > trunk. I've included a patch