Answer the question
In order to leave comments, you need to log in
Find the maximum difference between two fields in one query?
There is a model:
class Ground(models.Model):
current_cost = models.DecimalField(_("Текущая стоимость"), max_digits=21, decimal_places=2, blank=True, null=True)
cost_intermediate = models.DecimalField(_("Ожидаемая стоимость"), max_digits=21, decimal_places=2, blank=True,
null=True)
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question