jonge-democraten / website

JD website
https://jongedemocraten.nl
MIT License
6 stars 2 forks source link

Imported old (sent) newsletters do not retain their old publication date #121

Closed Pi2048 closed 8 years ago

Pi2048 commented 8 years ago

This is due to a setting in the Newsletter model at line https://github.com/jonge-democraten/hemres/blob/master/hemres/models.py#L157. @trolando could you remove the auto_now_add setting and replace it with default = timezone.now()? We want to be able to set this date from the migration scripts.

Documentation about this setting is at https://docs.djangoproject.com/en/1.8/ref/models/fields/#django.db.models.DateField.auto_now_add.

trolando commented 8 years ago

Fixed in next hemres version.