Changes between Initial Version and Version 1 of Ticket #35771
- Timestamp:
- Sep 18, 2024, 1:20:19 AM (3 months ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #35771 – Description
initial v1 1 {{{ 1 2 class Vote(models.Model): 2 3 class Points(models.IntegerChoices): … … 24 25 # current value is datetime.date(2024, 9, 17) 25 26 26 27 27 """ 28 28 I figured it out myself and in `pre_save` function of models.DateField class, we should use timezone.now().date() instead of datetime.date.today() 29 """ 29 "" 30 }}}