@register.simple_tag
def paginator_number(cl, i):
    if i == DOT:
        return '... '
    elif i == cl.page_num:
        return format_html('<span class="this-page">{}</span> ', i + 1)
    else:
        return format_html('<a href="{}"{}>{}</a> ',
                           cl.get_query_string({PAGE_VAR: i}),
                           mark_safe(' class="end"' if i == cl.paginator.num_pages - 1 else ''),
                           i + 1)
Ensure that the "Add another XXX" link correctly adds items to the
dataset/ETHPy150Open django/django/django/contrib/admin/templatetags/admin_list.py/paginator_number--crossover with--dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-1.4/tests/regressiontests/admin_inlines/tests.py/SeleniumFirefoxTests.test_add_inlines