Re: Building ORM relations without saving...

2008-08-29 Thread Norman Harman
Koen Bok wrote: > I'd like to build object relations (Model classes) without saving them > to the database to predict a price for a specific order. Let's say I > have this: > > class Order(Model): > id = models.AutoField(primary_key=True) > number = models.IntegerField() > > de

Building ORM relations without saving...

2008-08-29 Thread Koen Bok
I'd like to build object relations (Model classes) without saving them to the database to predict a price for a specific order. Let's say I have this: class Order(Model): id = models.AutoField(primary_key=True) number = models.IntegerField() def total(self):