Django

Code

Changeset 5715

Show
Ignore:
Timestamp:
07/15/07 23:54:49 (1 year ago)
Author:
mtredinnick
Message:

Fixed #4887 -- Fixed another place where template tag arguments are used
directly as function keyword args. Thanks, Brian Rosner.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/AUTHORS

    r5712 r5715  
    223223    Henrique Romano <onaiort@gmail.com> 
    224224    Armin Ronacher 
     225    Brian Rosner <brosner@gmail.com> 
    225226    Oliver Rutherfurd <http://rutherfurd.net/> 
    226227    Ivan Sagalaev (Maniac) <http://www.softwaremaniacs.org/> 
  • django/trunk/django/contrib/comments/templatetags/comments.py

    r5511 r5715  
    66from django.core.exceptions import ObjectDoesNotExist 
    77from django.contrib.contenttypes.models import ContentType 
     8from django.utils.encoding import smart_str 
    89import re 
    910 
     
    175176                raise template.TemplateSyntaxError, "Fourth argument in %r tag must be 'with'" % tokens[0] 
    176177            for option, args in zip(tokens[5::2], tokens[6::2]): 
     178                option = smart_str(option) 
    177179                if option in ('photos_optional', 'photos_required') and not self.free: 
    178180                    # VALIDATION ##############################################