List Info

Thread: How does Django handle Model Inheritance?




How does Django handle Model Inheritance?
user name
2007-04-17 16:04:05
Hi everyone,

    I'm a newcomer to this list, so be patient if this is a
dumb
question. I'd like to know how does DJango handle Model
Inheritance.

    For example, if I do something like this and use
PostgreSQL:

class BaseModel( models.Model ):
    base_attribute = models.CharField()

class ChildModel( BaseModel ):
    child_attribute = models.CharField()

    does it create two completely separate tables or does it
use
Postgre's Table Inheritance feature?

    Regards,

Raphael

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Django users" group.
To post to this group, send email to django-usersgooglegroups.com
To unsubscribe from this group, send email to
django-users-unsubscribegooglegroups.com
For more options, visit this group at htt
p://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: How does Django handle Model Inheritance?
user name
2007-04-17 16:26:57
On 4/17/07, Raphael Melo de Oliveira Bastos Sales
<raphael.melo21gmail.com> wrote:
>     I'm a newcomer to this list, so be patient if this
is a dumb
> question. I'd like to know how does DJango handle Model
Inheritance.

Model inheritance is not currently supported in Django. It
will be at
some as-yet-uncertain point in the future, but for the
moment it is
not supported.

-- 
"Bureaucrat Conrad, you are technically correct -- the
best kind of correct."

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Django users" group.
To post to this group, send email to django-usersgooglegroups.com
To unsubscribe from this group, send email to
django-users-unsubscribegooglegroups.com
For more options, visit this group at htt
p://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: How does Django handle Model Inheritance?
user name
2007-04-18 01:01:27
On 4/17/07, James Bennett <ubernostrumgmail.com> wrote:
>
> On 4/17/07, Raphael Melo de Oliveira Bastos Sales
> <raphael.melo21gmail.com> wrote:
> >     I'm a newcomer to this list, so be patient if
this is a dumb
> > question. I'd like to know how does DJango handle
Model Inheritance.
>
> Model inheritance is not currently supported in Django.
It will be at
> some as-yet-uncertain point in the future, but for the
moment it is
> not supported.
>

Thanks for the response, James.

    Humm, note to self, possible Summer of Code project :P

Regards.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Django users" group.
To post to this group, send email to django-usersgooglegroups.com
To unsubscribe from this group, send email to
django-users-unsubscribegooglegroups.com
For more options, visit this group at htt
p://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---


[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )