
from __future__ import absolute_import, division, print_function, unicode_literals

__version__ = "1.2.0"


try:
    from django.template import add_to_builtins
except ImportError:
    # import path changed in 1.8
    from django.template.base import add_to_builtins

add_to_builtins("easy_pjax.templatetags.pjax_tags")


from __future__ import absolute_import, division, print_function, unicode_literals

__version__ = "1.2.0"

has_add_to_builtins = True
try:
    from django.template import add_to_builtins
except ImportError:
    try:
        # import path changed in 1.8
        from django.template.base import add_to_builtins
    except ImportError:
        has_add_to_builtins = False

if has_add_to_builtins:
    add_to_builtins("easy_pjax.templatetags.pjax_tags")

Add to template builtins only if add_to_buitlins is available (Django <= 1.8)
Add to template builtins only if add_to_buitlins is available (Django <= 1.8)

  
  from __future__ import absolute_import, division, print_function, unicode_literals
  
  __version__ = "1.2.0"
  
- 
+ has_add_to_builtins = True
  try:
      from django.template import add_to_builtins
  except ImportError:
+     try:
-     # import path changed in 1.8
+         # import path changed in 1.8
-     from django.template.base import add_to_builtins
+         from django.template.base import add_to_builtins
+     except ImportError:
+         has_add_to_builtins = False
  
+ if has_add_to_builtins:
- add_to_builtins("easy_pjax.templatetags.pjax_tags")
+     add_to_builtins("easy_pjax.templatetags.pjax_tags")
  
Add to template builtins only if add_to_buitlins is available (Django <= 1.8)
## Code Before:

from __future__ import absolute_import, division, print_function, unicode_literals

__version__ = "1.2.0"


try:
    from django.template import add_to_builtins
except ImportError:
    # import path changed in 1.8
    from django.template.base import add_to_builtins

add_to_builtins("easy_pjax.templatetags.pjax_tags")

## Instruction:
Add to template builtins only if add_to_buitlins is available (Django <= 1.8)
## Code After:

from __future__ import absolute_import, division, print_function, unicode_literals

__version__ = "1.2.0"

has_add_to_builtins = True
try:
    from django.template import add_to_builtins
except ImportError:
    try:
        # import path changed in 1.8
        from django.template.base import add_to_builtins
    except ImportError:
        has_add_to_builtins = False

if has_add_to_builtins:
    add_to_builtins("easy_pjax.templatetags.pjax_tags")
