mirror of
https://gitlab.com/animath/si/plateforme.git
synced 2024-12-24 18:22:24 +00:00
datetime are time-zoned
This commit is contained in:
parent
f5367828ca
commit
9f22157ccf
@ -36,12 +36,12 @@ class Tournament(models.Model):
|
||||
)
|
||||
|
||||
date_start = models.DateField(
|
||||
default=timezone.now().date(),
|
||||
default=timezone.now,
|
||||
verbose_name=_("date start"),
|
||||
)
|
||||
|
||||
date_end = models.DateField(
|
||||
default=timezone.now().date(),
|
||||
default=timezone.now,
|
||||
verbose_name=_("date end"),
|
||||
)
|
||||
|
||||
|
@ -43,6 +43,7 @@ urlpatterns = [
|
||||
# Supporting old paths
|
||||
path('inscription/', RedirectView.as_view(pattern_name="member:signup")),
|
||||
path('connexion/', RedirectView.as_view(pattern_name="login")),
|
||||
path('tournois/', RedirectView.as_view(pattern_name="tournament:list")),
|
||||
]
|
||||
|
||||
handler400 = bad_request
|
||||
|
Loading…
Reference in New Issue
Block a user