code: def week_number(date):
      
      week_number = date.strftime('%W')
      if int(week_number) < 10:
          week_number = week_number[-1]
      return week_number
docs: Return the Python week number of a date.
      The django \|date:"W" returns incompatible value
      with the view implementation.