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