Paginate the blacklist

This commit is contained in:
2011-12-04 19:58:26 +00:00
parent e2223f6702
commit 406460aaa6

View File

@@ -415,6 +415,7 @@ class HrAddBlacklist(CreateView):
model = Blacklist
template_name = 'hr/blacklist_add.html'
paginate_by = 25
def dispatch(self, request, *args, **kwargs):
if not request.user.has_perm('hr.add_blacklist'):