Adds more fields to import admin table and ticks version
This commit is contained in:
parent
3f2f718878
commit
40e9428b49
4 changed files with 25 additions and 4 deletions
|
@ -22,7 +22,9 @@ class ImportList(View):
|
|||
def get(self, request, status="active"):
|
||||
"""list of imports"""
|
||||
complete = status == "complete"
|
||||
imports = models.ImportJob.objects.filter(complete=complete)
|
||||
imports = models.ImportJob.objects.filter(complete=complete).order_by(
|
||||
"created_date"
|
||||
)
|
||||
paginated = Paginator(imports, PAGE_LENGTH)
|
||||
page = paginated.get_page(request.GET.get("page"))
|
||||
data = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue