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

@@ -19,6 +19,8 @@ def create_order_cart_line_obj(order_cart_line_obj_new:Order_Cart_Line_Base):
if not order_cart_line_obj_new:
return False
# Something needs to be added to lookup the current product information and copy that into the order_cart_line. Also knowing this will eventually be order_line.
order_cart_line_obj_data = order_cart_line_obj_new.dict(by_alias=False, exclude_defaults=False, exclude_unset=True, exclude={'user', 'created_on', 'updated_on'})
if order_cart_line_obj_in_result := sql_insert(data=order_cart_line_obj_data, table_name='order_cart_line', rm_id_random=True, id_random_length=8): pass