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(
|
date_start = models.DateField(
|
||||||
default=timezone.now().date(),
|
default=timezone.now,
|
||||||
verbose_name=_("date start"),
|
verbose_name=_("date start"),
|
||||||
)
|
)
|
||||||
|
|
||||||
date_end = models.DateField(
|
date_end = models.DateField(
|
||||||
default=timezone.now().date(),
|
default=timezone.now,
|
||||||
verbose_name=_("date end"),
|
verbose_name=_("date end"),
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -43,6 +43,7 @@ urlpatterns = [
|
||||||
# Supporting old paths
|
# Supporting old paths
|
||||||
path('inscription/', RedirectView.as_view(pattern_name="member:signup")),
|
path('inscription/', RedirectView.as_view(pattern_name="member:signup")),
|
||||||
path('connexion/', RedirectView.as_view(pattern_name="login")),
|
path('connexion/', RedirectView.as_view(pattern_name="login")),
|
||||||
|
path('tournois/', RedirectView.as_view(pattern_name="tournament:list")),
|
||||||
]
|
]
|
||||||
|
|
||||||
handler400 = bad_request
|
handler400 = bad_request
|
||||||
|
|
Loading…
Reference in New Issue