#5216: Lazy Translation label_tag in new forms
--------------------------------+-------------------------------------------
          Reporter:  anonymous  |         Owner:  anonymous
            Status:  new        |     Milestone:  1.0      
         Component:  Forms      |       Version:  SVN      
        Resolution:             |      Keywords:           
             Stage:  Accepted   |     Has_patch:  1        
        Needs_docs:  0          |   Needs_tests:  1        
Needs_better_patch:  0          |  
--------------------------------+-------------------------------------------
Comment (by Vadim Fint <[EMAIL PROTECTED]>):

 I did also included regression test in attachment:label_tag.5.patch.

 Without patch, test fails with following error:
 {{{
 ======================================================================
 FAIL: Doctest: regressiontests.forms.tests.__test__.regression_tests
 ----------------------------------------------------------------------
 Traceback (most recent call last):
   File "/home/mocksoul/tmp/django-label-
 tag/trunk/django/test/_doctest.py", line 2180, in runTest
     raise self.failureException(self.format_failure(new.getvalue()))
 AssertionError: Failed doctest test for
 regressiontests.forms.tests.__test__.regression_tests
   File "/home/mocksoul/tmp/django-label-
 tag/trunk/tests/regressiontests/forms/tests.py", line unknown line number,
 in regression_tests

 ----------------------------------------------------------------------
 File "/home/mocksoul/tmp/django-label-
 tag/trunk/tests/regressiontests/forms/tests.py", line ?, in
 regressiontests.forms.tests.__test__.regression_tests
 Failed example:
     print f['field_2'].label_tag()
 Expected:
     <label for="field_2_id">field_2</label>
 Got:
     <label for="field_2_id"><django.utils.functional.__proxy__ object at
 0x8a4c98c></label>
 }}}

 With patch, of course, no error occurs.

 Hope, this helps.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/5216#comment:15>
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