I need to store and retrieve temperatures in a model. I'd like to store all the values in celsius. However some users prefer to view the value in fahrenheit.
What is the recommended way to setup a model like this?
Perhaps manually convert the values in the view and on save?
Or is it possible to use python properties in a model for saves, updates and gets?
Or is some other practice preferred?
class Temp(models.Model):
user = models.ForeignKey(User, unique=False)
temperature = models.FloatField(null=True, blank=True)