On Tue, Aug 15, 2006 at 07:57:49PM -0700, Julio C?sar Carrascal Urquijo wrote:
>
> I'm using a cursor inside the _pre_save() method for one of my models
> and figured it would be wise to use the table name gerated by Django
> instead of just hard-coding the name.
Err, _pre_save() was ousted as p
On 8/15/06, Julio César Carrascal Urquijo <[EMAIL PROTECTED]> wrote:
> (I'm using Django 0.95, btw)
Then you want to be overriding the model's 'save' method rather than
using a '_pre_save' method; '_pre_save' and friends went away in the
0.91 -> 0.95 move.
--
"May the forces of evil become conf
That's it. Thanks.
--~--~-~--~~~---~--~~
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 PROTEC
are you referring to ?
*modelname*._meta.db_table
On 16/08/2006, at 12:57 PM, Julio César Carrascal Urquijo wrote:
>
> I'm using a cursor inside the _pre_save() method for one of my models
> and figured it would be wise to use the table name gerated by Django
> instead of just hard-coding the n
I'm using a cursor inside the _pre_save() method for one of my models
and figured it would be wise to use the table name gerated by Django
instead of just hard-coding the name.
Is it possible to access the table name of a model from one of it's
methods?
Thanks.
(I'm using Django 0.95, btw)
-
5 matches
Mail list logo