#10486: DateTimeFormat in admin doesn't use DATETIME_FORMAT from settings ----------------------------------+----------------------------------------- Reporter: powerfox | Owner: nobody Status: new | Milestone: Component: django.contrib.admin | Version: SVN Keywords: | Stage: Unreviewed Has_patch: 0 | ----------------------------------+----------------------------------------- I have set DATETIME_FORMAT in the settings. I have 2 models with OneToMany relation (one has datetime and another uses fk to get datetime). In admin I get correct datetime for model, which uses function returning fk.some_datetime. Format in model containing datetime is wrong. After checking I noticed it comes from utils.translation.get_date_formats:
{{{ datetime_format = ugettext('DATETIME_FORMAT') ... if datetime_format == 'DATETIME_FORMAT': datetime_format = settings.DATETIME_FORMAT #is never set for me }}} I have default localization: "LANGUAGE_CODE = 'en-us'" in settings. -- Ticket URL: <http://code.djangoproject.com/ticket/10486> Django <http://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 post to this group, send email to django-updates@googlegroups.com To unsubscribe from this group, send email to django-updates+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-updates?hl=en -~----------~----~----~----~------~----~------~--~---