On Tue, 2008-04-15 at 09:46 -0400, Michael wrote:
[...]

> I have been looking at this for a while now and I am really stumped as
> to how to pull out the child model name from inside the field. I
> really hope this will be an easy fix, but I am about to give up.
> Should I file a ticket anyway, despite the fact that I know you know
> about it?

This is fixed in [7431]. At that point, standard relations on abstract
base classes will work properly even when more than one child class uses
them. That was just a stupid error on my part (as suspect, it was pretty
much working already, but I forgot one bit).

>         However that still leaves a problem in any case where m2m
>         fields refer
>         to the same model (or where somebody wants to specify the
>         related name)
>         in the abstract base class and that's probably going to be a
>         case of
>         hard cheese. Abstract base classes are an aid, not a crutch.
>         Fortunately, we can detect that problem and raise a sensible
>         error (I
>         was thinking about that over lunch and it doesn't seem too
>         hard).
> 
> I have been thinking about this since I realized my convolution
> earlier. Couldn't related name be achieved by creating another
> abstract base class and extending it?

Did you at least feel a little bit guilty inside whilst writing up a
proposed solution that involved adding yet more classes? :-)

I've fixed this in a reasonably simple fashion (he says hopefully) in
[7432]. There's documentation as part of that patch that shows how to
use related_name on abstract base classes.

Regards,
Malcolm


-- 
Why be difficult when, with a little bit of effort, you could be
impossible. 
http://www.pointy-stick.com/blog/


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to