original_docstring: Render the ending frequency radio options.
docstring: Render the ending frequency radio options.
docstring_tokens: Render the ending frequency radio options .
code: def render_ending(self, name, value, attrs=None):
          """Render the ending frequency radio options."""
          count = getattr(value, 'count', None)
          count_widget_html = self.keyed_widgets.get('count').render(
                                      name='{0}_count'.format(name),
                                      value=count,
                                      attrs={'id': 'id_{0}_count'.format(name),
                                             'tabindex': '1'})
  
          # If there's a value for count then don't set one for end date
          # (technically they both shouldn't be set)
          until = getattr(value, 'until', None) if count == None else ''
          until_widget_html = self.keyed_widgets.get('until').render(
                                      name='{0}_until'.format(name),
                                      value=until,
                                      attrs={'id': 'id_{0}_until'.format(name),
                                             'tabindex': '1'})
  
          context = {'name': name,
                     'count_html': count_widget_html,
                     'until_html': until_widget_html,
                     'label': 'Ending'}
  
          if value.count != None:
              context['ending'] = 'count'
          elif value.until != None:
              context['ending'] = 'until'
  
          return render_to_string('django_recurrences/widget/ending.html',
                                  context)
code_tokens: def render_ending ( self , name , value , attrs = None ) : count = getattr ( value , 'count' , None ) count_widget_html = self . keyed_widgets . get ( 'count' ) . render ( name = '{0}_count' . format ( name ) , value = count , attrs = { 'id' : 'id_{0}_count' . format ( name ) , 'tabindex' : '1' } ) until = getattr ( value , 'until' , None ) if count == None else '' until_widget_html = self . keyed_widgets . get ( 'until' ) . render ( name = '{0}_until' . format ( name ) , value = until , attrs = { 'id' : 'id_{0}_until' . format ( name ) , 'tabindex' : '1' } ) context = { 'name' : name , 'count_html' : count_widget_html , 'until_html' : until_widget_html , 'label' : 'Ending' } if value . count != None : context [ 'ending' ] = 'count' elif value . until != None : context [ 'ending' ] = 'until' return render_to_string ( 'django_recurrences/widget/ending.html' , context )
short_docstring: Render the ending frequency radio options.
short_docstring_tokens: Render the ending frequency radio options .
comment: """Render the ending frequency radio options."""$SEP$# If there's a value for count then don't set one for end date$SEP$# (technically they both shouldn't be set)