old_contents: import django
  from django import template
  from django_countries.fields import Country, countries
  
  
  register = template.Library()
  
  if django.VERSION < (1, 9):
      # Support older versions without implicit assignment support in simple_tag.
      simple_tag = register.assignment_tag
  else:
      simple_tag = register.simple_tag
  
  
  @simple_tag
  def get_country(code):
      return Country(code=code)
  
  
  @simple_tag
  def get_countries():
      return list(countries)
  
new_contents: import django
  from django import template
  
  from django_countries.fields import Country, countries
  
  register = template.Library()
  
  
  @register.simple_tag
  def get_country(code):
      return Country(code=code)
  
  
  @register.simple_tag
  def get_countries():
      return list(countries)
  
subject: Remove Django 1.9 simple_tag reference