Bug fix for special characters in GET params because of % symbol
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user