diff --git a/paginationlinks/templatetags/pagination_links.py b/paginationlinks/templatetags/pagination_links.py
index <HASH>..<HASH> 100644
--- a/paginationlinks/templatetags/pagination_links.py
+++ b/paginationlinks/templatetags/pagination_links.py
@@ -1,8 +1,15 @@
+import django
 from django import template
 
 register = template.Library()
 
 
+if django.VERSION >= (1, 9):
+    assignment_tag = register.simple_tag
+else:
+    assignment_tag = register.assignment_tag
+
+
 class PageNumber(object):
     def __init__(self, number, current):
         # We're given zero indexed numbers
@@ -20,7 +27,7 @@ class PageNumber(object):
         return self.number is None
 
 
-@register.assignment_tag
+@assignment_tag
 def get_pagination_links(paginator, page_obj, on_each_side=1, on_ends=1):
     page_num = page_obj.number - 1
Avoid assignment_tag warning in Django <I>