#7684: ugettext() in app `__init__.py` causes error.
-------------------------------------------+--------------------------------
          Reporter:  julien                |         Owner:  nobody
            Status:  closed                |     Milestone:        
         Component:  Internationalization  |       Version:  SVN   
        Resolution:  invalid               |      Keywords:        
             Stage:  Accepted              |     Has_patch:  0     
        Needs_docs:  0                     |   Needs_tests:  0     
Needs_better_patch:  0                     |  
-------------------------------------------+--------------------------------
Changes (by julien):

  * status:  reopened => closed
  * resolution:  => invalid

Comment:

 As noted by brosner, I was having that issue because the admin module was
 imported in the __init__.py
 Using the new recommended practice (e.g. autodiscover) removes that issue,
 so I'm now closing this ticket. As also noted by brosner above,
 ugettext_lazy should be used instead of ugettext in models declarations.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/7684#comment:5>
Django Code <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 [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
-~----------~----~----~----~------~----~------~--~---

Reply via email to