#17873: django.utils.translation.get_date_formats raises exception
------------------------------------------------+------------------------
Reporter: Glenn Washburn <development@…> | Owner: nobody
Type: Bug | Status: new
Component: Translations | Version: 1.4-beta-1
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Easy pickings: 0 | UI/UX: 0
------------------------------------------------+------------------------
Because django.utils.translation.get_date_formats just proxies to either
the null or real translation functions, those functions sets must have
get_date_formats as a member. Neither have it.
>>> from django.utils.translation import ugettext, get_date_formats
>>> get_date_formats()
Traceback (most recent call last):
File "<console>", line 1, in <module>
File "/virtenv/src/django/django/utils/translation/__init__.py", line
136, in get_date_formats
return _trans.get_date_formats()
File "/virtenv/src/django/django/utils/translation/__init__.py", line
67, in __getattr__
setattr(self, real_name, getattr(trans, real_name))
AttributeError: 'module' object has no attribute 'get_date_formats'
--
Ticket URL: <https://code.djangoproject.com/ticket/17873>
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 post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en.