Re: Multi-table inheritance child type

2008-12-16 Thread sajal
Hi Malcom, Thanks for your help. Being a noob this was the first time i used the save() method and it just rocks! Issue solved. Regards, Sajal On Dec 15, 7:04 am, Malcolm Tredinnick wrote: > On Sun, 2008-12-14 at 15:43 -0800, sajal wrote: > > when using Multi-table

Re: Multi-table inheritance child type

2008-12-14 Thread Malcolm Tredinnick
On Sun, 2008-12-14 at 15:43 -0800, sajal wrote: > when using Multi-table inheritance, how do i know what type is the > child? Add a child_type field explicitly to the parent model and set it during the save() method. That will save on database queries. You could also just try to access the

Multi-table inheritance child type

2008-12-14 Thread sajal
when using Multi-table inheritance, how do i know what type is the child? My models :- class Node(models.Model): title = models.CharField(max_length=200) pub_date = models.DateTimeField('date published', default=datetime.datetime.today()) isfp = models.BooleanField("Show on