Ok. Everything clear then! Thank you!

On 29 jun, 12:36, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote:
> On Sun, 2008-06-29 at 02:55 -0700, zenx wrote:
> > Can you make a model that inherits from another model with multi-table
> > inheritance and that can have a null parent? Or should do that always
> > with OneToOneFIeld(null=True) ?
>
> No. The assumption is that the parent link will always be non-null.
> After all, inheritance is saying you have an "is-a" relationship and it
> doesn't really make sense to say "foo is-a nothing". If the "parent" can
> be null, it's more of an attribute than an ancestor ("has-a", not
> "is-a").
>
> Regards,
> Malcolm
>
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected]
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