#34853: [Date Input Localization] Accept-Language Header Takes Precedence Over
Language Set With Cookie
-------------------------------------+-------------------------------------
     Reporter:  blue-hexagon         |                    Owner:  nobody
         Type:  Bug                  |                   Status:  new
    Component:                       |                  Version:  4.1
  Internationalization               |
     Severity:  Normal               |               Resolution:
     Keywords:  l10n localization    |             Triage Stage:
  form input                         |  Unreviewed
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------

Comment (by Natalia Bidart):

 Thank you blue-hexagon for the test project, I'm cloning it right now to
 try to reproduce. While I do that, please note that when runninng
 `makemigrations` I get this warning:

 {{{
 WARNINGS:
 book_store.Book.borrowed_from_date: (fields.W161) Fixed default value
 provided.
         HINT: It seems you set a fixed date / time / datetime value as
 default for this field. This may not be what you want. If you want to have
 the current date as default, use `django.utils.timezone.now`
 }}}

 It seems that the `default` definition for `borrowed_from_date` should be
 the callable `datetime.date.today` and not the actual result of the call.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/34853#comment:7>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/0107018adc032f63-0578b7bc-43c8-46d2-9b76-c85068a7d2a8-000000%40eu-central-1.amazonses.com.

Reply via email to