I have a model Django model like this:
class MyModel(models.Model):
fieldA = models.CharField(max_length=100)
fieldB = models.IntegerField()
fieldC = models.IntegerField()
I want to find the Max(fieldB + fieldC). Is there a Django way to do this? Or do I have to go with raw sql (in case it will be something like "Select Max(fieldA + fieldB) From mymodel_table")?
Thanks in advance