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
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
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
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
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
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