Avoid timeout on the django admin backoffice for certificate view.
We want to force the user to select an organization first to see some results.
This issue will solve : #768
Purpose
To prevent django admin to timeout when there will be numerous entries when calling the certificate view, we force the user to select an organization first to get some results. The user will be able to use the search bar to filter out more through the organization's certificates results with the username of the learner.
Proposal
[x] Add organization as a required filter before getting results
[x] use search_fields with data related to the learner through order__owner or enrollment__user for the CertificateAdmin viewset
Avoid timeout on the django admin backoffice for certificate view. We want to force the user to select an organization first to see some results.
This issue will solve : #768
Purpose
To prevent django admin to timeout when there will be numerous entries when calling the certificate view, we force the user to select an organization first to get some results. The user will be able to use the search bar to filter out more through the organization's certificates results with the username of the learner.
Proposal
search_fields
with data related to the learner throughorder__owner
orenrollment__user
for theCertificateAdmin
viewset