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
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
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
3 matches
Mail list logo