Merge branch 'release' into features/132-navegabilidad-credenciales
This commit is contained in:
commit
9fc7816f86
|
@ -225,7 +225,7 @@ class ImportForm(forms.Form):
|
|||
|
||||
data_pd = df.fillna('').to_dict()
|
||||
|
||||
if not data_pd or not df.last_valid_index():
|
||||
if not data_pd or df.last_valid_index() is None:
|
||||
self.exception("The file you try to import is empty!")
|
||||
|
||||
if not self._schema:
|
||||
|
@ -234,7 +234,8 @@ class ImportForm(forms.Form):
|
|||
for n in range(df.last_valid_index()+1):
|
||||
row = {}
|
||||
for k in data_pd.keys():
|
||||
row[k] = data_pd[k][n] or ''
|
||||
if data_pd[k][n]:
|
||||
row[k] = data_pd[k][n]
|
||||
|
||||
user = self.validate_jsonld(n, row)
|
||||
self.rows[user] = row
|
||||
|
@ -400,7 +401,6 @@ class ImportCertificateForm(forms.Form):
|
|||
self._did = None
|
||||
self._s = None
|
||||
self._label = None
|
||||
self.user = kwargs.pop('user', None)
|
||||
super().__init__(*args, **kwargs)
|
||||
|
||||
def clean(self):
|
||||
|
@ -433,7 +433,6 @@ class ImportCertificateForm(forms.Form):
|
|||
did=self.file_name,
|
||||
label=self._label,
|
||||
eidas1=True,
|
||||
user=self.user,
|
||||
type=DID.Types.KEY
|
||||
)
|
||||
|
||||
|
|
|
@ -840,11 +840,6 @@ class WalletConfigIssuesView(Credentials, FormView):
|
|||
form_class = ImportCertificateForm
|
||||
success_url = reverse_lazy('idhub:admin_dids')
|
||||
|
||||
def get_form_kwargs(self):
|
||||
kwargs = super().get_form_kwargs()
|
||||
kwargs['user'] = self.request.user
|
||||
return kwargs
|
||||
|
||||
def form_valid(self, form):
|
||||
cred = form.save()
|
||||
if cred:
|
||||
|
|
Loading…
Reference in New Issue