views:

8

answers:

0
                                                                  5,1-8         Top

class customerdetails(models.Model):

    1 = models.DecimalField(max_digits=5, decimal_places=2)
    2= models.IntegerField()
    3 = models.DecimalField(max_digits=5, decimal_places=2)

    11 = models.DecimalField(max_digits=5, decimal_places=2)
    22 = models.DecimalField(max_digits=5, decimal_places=2)
    33 = models.DecimalField(max_digits=5, decimal_places=2)

this is my model and i want to multiply do some this like 1 = 2*3 , 11 = 22*33 but in single models how do i do it ,,,