Changes between Initial Version and Version 1 of Ticket #35771


Ignore:
Timestamp:
Sep 18, 2024, 1:20:19 AM (3 months ago)
Author:
Racing Car
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #35771 – Description

    initial v1  
     1{{{
    12class Vote(models.Model):
    23    class Points(models.IntegerChoices):
     
    2425       # current value is  datetime.date(2024, 9, 17)
    2526
    26 
    2727"""
    2828I 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}}}
Back to Top