Fix pagination for 'add many' confirm view
This commit is contained in:
@@ -7,6 +7,7 @@ from django.core.mail import send_mail
|
||||
from django.conf import settings
|
||||
from django.utils.translation import ugettext as _
|
||||
from django.forms.models import model_to_dict
|
||||
from django_tables2.config import RequestConfig
|
||||
|
||||
import logging
|
||||
import csv
|
||||
@@ -129,6 +130,7 @@ def import_csv(request, *args, **kwargs):
|
||||
exclude=['id', 'options'],
|
||||
attrs={'class': 'table table-bordered table-hover'})
|
||||
|
||||
member_table.paginate(page=request.GET.get('page', 1), per_page=999999)
|
||||
member_table_html = convert_table_to_html(member_table, request)
|
||||
|
||||
payment_table = PaymentTable(result.payments,
|
||||
@@ -136,6 +138,7 @@ def import_csv(request, *args, **kwargs):
|
||||
exclude=['id', 'options'],
|
||||
attrs={'class': 'table table-bordered table-hover'})
|
||||
|
||||
payment_table.paginate(page=request.GET.get('page', 1), per_page=999999)
|
||||
payment_table_html = convert_table_to_html(payment_table, request)
|
||||
|
||||
request.session['models'] = result
|
||||
|
||||
Reference in New Issue
Block a user