Re: Postgresql Inheritance

2005-09-05 Thread Adrian Holovaty
On 9/5/05, jws <[EMAIL PROTECTED]> wrote: > There doesn't seem to be anyway to create postgresql tables that use > inheritance from the Django model syntax. Is that true or am I missing > something? That's correct. There's no way to do table inheritance. Generally, you can use OneToOneFields to

Re: Implications of 'default='?

2005-09-05 Thread Adrian Holovaty
On 9/5/05, jws <[EMAIL PROTECTED]> wrote: > I would expect the produced SQL(for Postgres) to include a DEFAULT > 'FALSE' clause. > > Does the 'default' keyword only relate to html forms? That's correct. The "default" keyword is only used by Python, not on the SQL layer. That said, I don't see a

Re: Postgresql Inheritance

2005-09-05 Thread Martin Maney
On Mon, Sep 05, 2005 at 09:13:11AM -0700, jws wrote: > There doesn't seem to be anyway to create postgresql tables that use > inheritance from the Django model syntax. Is that true or am I missing > something? I think it's true, but could you explain what you're trying to do? I can see at least

Re: Implications of 'default='?

2005-09-05 Thread Manuzhai
> This does not act as I expect: > > foo = meta.BoooleanField(default='FALSE') > > I would expect the produced SQL(for Postgres) to include a DEFAULT > 'FALSE' clause. I'd guess you need foo = meta.BooleanField(default = False). Since the model is really a Python binding, you assign Python-

Implications of 'default='?

2005-09-05 Thread jws
This does not act as I expect: foo = meta.BoooleanField(default='FALSE') I would expect the produced SQL(for Postgres) to include a DEFAULT 'FALSE' clause. Does the 'default' keyword only relate to html forms?

Postgresql Inheritance

2005-09-05 Thread jws
There doesn't seem to be anyway to create postgresql tables that use inheritance from the Django model syntax. Is that true or am I missing something?