Re: model subclassing

2008-04-09 Thread Chris
Thanks looks very helpful. I will look over that when I get a free moment. On Apr 9, 10:39 am, Rajesh Dhawan <[EMAIL PROTECTED]> wrote: > Hi, > > On Apr 9, 12:30 am, Chris <[EMAIL PROTECTED]> wrote: > > > I am trying create a custom model field that will create 2 field > > instances, a

Re: model subclassing

2008-04-09 Thread Rajesh Dhawan
Hi, On Apr 9, 12:30 am, Chris <[EMAIL PROTECTED]> wrote: > I am trying create a custom model field that will create 2 field > instances, a CharField and a booleanField. I am using this with > signals and dispatchers to insert data entered from this custom field > into another model/table that

model subclassing

2008-04-08 Thread Chris
I am trying create a custom model field that will create 2 field instances, a CharField and a booleanField. I am using this with signals and dispatchers to insert data entered from this custom field into another model/table that contains a boolean and char field. my question is: how can I return

Re: model subclassing

2007-07-14 Thread Carl Karsten
Malcolm Tredinnick wrote: > On Fri, 2007-07-13 at 21:31 -0500, Carl Karsten wrote: >> I am experimenting with subclassing a model. The parent class will be an >> abstract class that does not get 'managed' by django. Only the subclass >> will, >> and the table the subclass works with will

Re: model subclassing

2007-07-13 Thread Malcolm Tredinnick
On Fri, 2007-07-13 at 21:31 -0500, Carl Karsten wrote: > I am experimenting with subclassing a model. The parent class will be an > abstract class that does not get 'managed' by django. Only the subclass > will, > and the table the subclass works with will have all the fields. > > syncdb

Re: model subclassing

2007-07-13 Thread Lars Stavholm
Carl Karsten wrote: > I am experimenting with subclassing a model. The parent class will be an > abstract class that does not get 'managed' by django. Only the subclass > will, > and the table the subclass works with will have all the fields. > > syncdb was able to create the table I

model subclassing

2007-07-13 Thread Carl Karsten
I am experimenting with subclassing a model. The parent class will be an abstract class that does not get 'managed' by django. Only the subclass will, and the table the subclass works with will have all the fields. syncdb was able to create the table I expected, the admin let me add and save

Re: Model subclassing

2007-05-15 Thread anders conbere
On 5/15/07, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > > On Mon, 2007-05-14 at 16:13 -0700, Joe wrote: > > I was wondering what the status of this is? I know that it broke a > > while back with the introduction of magic object removal, and has been > > in the pipeline since. I just tested it

Re: Model subclassing

2007-05-15 Thread Malcolm Tredinnick
On Mon, 2007-05-14 at 16:13 -0700, Joe wrote: > I was wondering what the status of this is? I know that it broke a > while back with the introduction of magic object removal, and has been > in the pipeline since. I just tested it out on my recent SVN checkout, > and it seemed to create the tables

Model subclassing

2007-05-14 Thread Joe
I was wondering what the status of this is? I know that it broke a while back with the introduction of magic object removal, and has been in the pipeline since. I just tested it out on my recent SVN checkout, and it seemed to create the tables in the database in the way that one would expect.

Model Subclassing and some questions

2006-03-12 Thread Panos Laganakos
Hello, I am defining a Product class that gets inherited by various products, so I am defining in it all the base attributes that exist on all child products. I want to know if its possible to forbid changing the actual "products" table unless you add one of the actual child products. Also,

Re: [0.91] Model, subclassing, accessing superclass ?

2006-03-09 Thread bruno desthuilliers
Laurent RAHUEL wrote: > Ooops, > > It should be : > > class Derived(Parent): > > def _pre_save(self): > do_some_other_things_here > self.my_method() > > Indentation problem ;-) Thanks Laurent, but there was a typo in my original post !-)

Re: [0.91] Model, subclassing, accessing superclass ?

2006-03-09 Thread Laurent RAHUEL
uno desthuilliers a écrit : > > Hi, > > > hello hello > > > > I must be a bit dumb, but I find myself a bit stucked with model > > subclassing. Here's the problem: how does one call on the superclass > > method when extending this method in the subc

[0.91] Model, subclassing, accessing superclass ?

2006-03-09 Thread bruno desthuilliers
hello hello I must be a bit dumb, but I find myself a bit stucked with model subclassing. Here's the problem: how does one call on the superclass method when extending this method in the subclass ? ie: class Parent(meta.Model): def my_method(self): do_something_here class