def list_export_uploads(request, tag): uploads = models.FileMonitor.objects.filter(tags__contains="upload").order_by( "-created" ) if tag: uploads = uploads.filter(tags_contains=tag) ctx = {"uploads": uploads} return render(request, "rundb/data/data_export.html", ctx)