diff --git a/categories/templates/categories/list.html b/categories/templates/categories/list.html
index bb60a86..2b1e83e 100755
--- a/categories/templates/categories/list.html
+++ b/categories/templates/categories/list.html
@@ -1,6 +1,6 @@
{% extends 'categories/home.html' %}
-{% load static i18n permission_tags %}
+{% load static i18n pagination %}
{% load django_bootstrap_breadcrumbs %}
{% block javascript%}
@@ -169,6 +169,7 @@
{% endif %}
{% endfor %}
+ {% pagination request paginator page_obj %}
diff --git a/categories/views.py b/categories/views.py
index ea20765..d0c1f2b 100644
--- a/categories/views.py
+++ b/categories/views.py
@@ -31,11 +31,11 @@ class IndexView(views.SuperuserRequiredMixin, LoginRequiredMixin, ListView):
queryset = Category.objects.all()
template_name = 'categories/list.html'
context_object_name = 'categories'
+ paginate_by = 10
def get_queryset(self):
result = super(IndexView, self).get_queryset()
-
return result
def render_to_response(self, context, **response_kwargs):
diff --git a/subjects/templates/subjects/list.html b/subjects/templates/subjects/list.html
index 7ff5085..6293699 100644
--- a/subjects/templates/subjects/list.html
+++ b/subjects/templates/subjects/list.html
@@ -1,6 +1,6 @@
{% extends 'categories/home.html' %}
-{% load static i18n permission_tags pagination %}
+{% load static i18n pagination %}
{% load django_bootstrap_breadcrumbs %}
{% block javascript%}
diff --git a/subjects/views.py b/subjects/views.py
index 067e9cc..38c7ddb 100644
--- a/subjects/views.py
+++ b/subjects/views.py
@@ -69,7 +69,7 @@ class IndexView(LoginRequiredMixin, ListView):
queryset = Category.objects.all()
template_name = 'subjects/list.html'
context_object_name = 'categories'
- paginate_by = 5
+ paginate_by = 10
def get_queryset(self):
categories = Category.objects.all().order_by('name')
--
libgit2 0.21.2