Ensure owner names are lowercase for new / updated certificates
This commit is contained in:
parent
cc4cdfcf13
commit
a6b1f33208
|
@ -60,6 +60,8 @@ class LemurSchema(Schema):
|
||||||
class LemurInputSchema(LemurSchema):
|
class LemurInputSchema(LemurSchema):
|
||||||
@pre_load(pass_many=True)
|
@pre_load(pass_many=True)
|
||||||
def preprocess(self, data, many):
|
def preprocess(self, data, many):
|
||||||
|
if isinstance(data, dict) and data.get('owner'):
|
||||||
|
data['owner'] = data['owner'].lower()
|
||||||
return self.under(data, many=many)
|
return self.under(data, many=many)
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue