Django

Code

Changeset 4185

Show
Ignore:
Timestamp:
12/07/06 23:54:14 (2 years ago)
Author:
adrian
Message:

Fixed small Unicode error in newforms. Thanks, Honza Král. Refs #3114

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/django/newforms/fields.py

    r4166 r4185  
    278278            new_value.append(val) 
    279279        # Validate that each value in the value list is in self.choices. 
    280         valid_values = set([k for k, v in self.choices]) 
     280        valid_values = set([smart_unicode(k) for k, v in self.choices]) 
    281281        for val in new_value: 
    282282            if val not in valid_values: 
  • django/trunk/docs/newforms.txt

    r4171 r4185  
    6363      display itself as HTML. 
    6464 
     65 
     66 
     67Using forms with templates 
     68========================== 
     69 
     70Using forms in views 
     71==================== 
     72 
    6573More coming soon 
    6674================