          self.var_name = var_name
  
      def render(self, context):
          obj_list = self.target.resolve(context, True)
          if obj_list == None: # target_var wasn't found in context; fail silently
              context[self.var_name] = []
              return ''
          # List of dictionaries in the format
          # {'grouper': 'key', 'list': [list of contents]}.
          context[self.var_name] = [{'grouper':key, 'list':list(val)} for key, val in
 
</s> remove         # List of dictionaries in the format
 </s> add         # List of dictionaries in the format: </s> remove         context[self.var_name] = [{'grouper':key, 'list':list(val)} for key, val in
            groupby(obj_list, lambda v, f=self.expression.resolve: f(v, True))]
 </s> add         context[self.var_name] = [
            {'grouper': key, 'list': list(val)}
            for key, val in
            groupby(obj_list, lambda v, f=self.expression.resolve: f(v, True))
        ] </s> remove         # apply filters
 </s> add         # Apply filters. </s> remove     # Find the maximum width of the line count, for use with zero padding string format command
 </s> add     # Find the maximum width of the line count, for use with zero padding
    # string format command. </s> remove         kwargs = dict([(smart_str(k,'ascii'), v.resolve(context)) for k, v in self.kwargs.items()])
 </s> add         kwargs = dict([(smart_str(k,'ascii'), v.resolve(context))
                       for k, v in self.kwargs.items()])
        if obj_list == None:
            # target variable wasn't found in context; fail silently.
          self.var_name = var_name
  
      def render(self, context):
          obj_list = self.target.resolve(context, True)
        if obj_list == None:
            # target variable wasn't found in context; fail silently.
              context[self.var_name] = []
              return ''
          # List of dictionaries in the format
          # {'grouper': 'key', 'list': [list of contents]}.
          context[self.var_name] = [{'grouper':key, 'list':list(val)} for key, val in
keep keep keep keep replace keep keep keep keep keep
 Style and import fixes.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@6641 bcc190cf-cafb-0310-a4f2-bffc1f526a37 
django/template/defaulttags.py