Re: auto total field

2006-11-19 Thread Guillermo Fernandez Castellanos
Did you put the Stock model before the OrderItem model? Sometimes this makes problems. If you did, what about this as an alternate solution? class Stock(models.Model): price = models.FloatField(max_digits=10, decimal_places=2) class OrderItem(models.Model): quantity = models.SmallIntegerF

auto total field

2006-11-18 Thread sorrison
I am in the process of developing a stock ordering system. I want the total field to be automatically calculated by quantity and price fields when i try and save an order item (in the admin interface) it says please correct the errors below without highlighting any of the fields. This is what i