Bug fix for special characters in GET params because of % symbol

This commit is contained in:
Scott Idem
2021-08-11 17:41:34 -04:00
parent cfd85435f2
commit 616011edfe
4 changed files with 54 additions and 18 deletions

View File

@@ -147,6 +147,16 @@ class Order_Cart_Line_Base(BaseModel):
return redis_lookup_id_random(record_id_random=values['curr_product_for_id_random'], table_name=values['curr_product_for_type'])
return None
# This is not working yet. It should return the product_type_code somehow
# @validator('product_type_code', always=True)
# def product_type_code_lookup(cls, v, values, **kwargs):
# log.setLevel(logging.WARNING)
# log.debug(locals())
# if values.get('product_type_code', None):
# return function_that_looks_stuff_up()
# return None
class Config:
underscore_attrs_are_private = True
allow_population_by_field_name = True