I would like to create a field with a predefined datetime. Something like this:
class MyExample(models.Model):
expiration = timezone.now() + timedelta(days=1)
expiration_date = models.DateTimeField(verbose_name="Expirate in", default=expiration)
...
I don't know if it's the best way, because when there are new migrations there is an update of the table with the expiration.
Does anyone have any tips?