clearing insecable spaces
This commit is contained in:
parent
b4a76579b8
commit
2bf982f60e
1 changed files with 4 additions and 0 deletions
4
api.py
4
api.py
|
|
@ -97,6 +97,10 @@ class LigneDevis(BaseModel):
|
|||
quantite: float
|
||||
prix_unitaire_ht: Optional[float] = None
|
||||
remise_pourcentage: Optional[float] = 0.0
|
||||
|
||||
@validator("article_code", pre=True)
|
||||
def strip_insecables(cls, v):
|
||||
return v.replace("\xa0", "").strip()
|
||||
|
||||
|
||||
class DevisRequest(BaseModel):
|
||||
|
|
|
|||
Loading…
Reference in a new issue