Re: How to save a result of multiplication

2021-04-26 Thread Roberth Solis Martínez
I'm according with Derek, but I saw you have a mix of languages and method, spanish and english, I'm speak spanish too, but as a best practice and prevent mix langagues try to use english, you know is like a standard or best practice in latin America El lunes, 26 de abril de 2021 a las 0:18:20

Re: How to save a result of multiplication

2021-04-25 Thread Derek
I think you have used the wrong name - "saveit" instead of "save" - also have a look at the example in the docs: https://docs.djangoproject.com/en/3.2/topics/db/models/#overriding-predefined-model-methods and see which parameters are needed for it. On Saturday, 24 April 2021 at 20:50:15 UTC+2 enc

How to save a result of multiplication

2021-04-24 Thread jose angel encinas ramos
Hi everyone i build a web application in Django 3.1.7 and i try to do the next opeation(multiplication). in my models a have: class Articles(models.Model): quantity = models.PositiveIntegerField() cost_buy = models.DecimalField(max_digits=10, decimal_places=2) total_todo = models.Dec