Bug fix in order cart method and added email to person model.
This commit is contained in:
@@ -187,9 +187,9 @@ def load_order_cart_obj(
|
|||||||
else: order_cart_obj.cfg = None
|
else: order_cart_obj.cfg = None
|
||||||
|
|
||||||
if model_as_dict:
|
if model_as_dict:
|
||||||
return order_obj.dict(by_alias=by_alias, exclude_unset=exclude_unset) # pylint: disable=no-member
|
return order_cart_obj.dict(by_alias=by_alias, exclude_unset=exclude_unset) # pylint: disable=no-member
|
||||||
else:
|
else:
|
||||||
return order_obj
|
return order_cart_obj
|
||||||
# ### END ### API Order Cart Methods ### load_order_cart_obj() ###
|
# ### END ### API Order Cart Methods ### load_order_cart_obj() ###
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -64,6 +64,11 @@ class Person_Base(BaseModel):
|
|||||||
created_on: Optional[datetime.datetime] = None
|
created_on: Optional[datetime.datetime] = None
|
||||||
updated_on: Optional[datetime.datetime] = None
|
updated_on: Optional[datetime.datetime] = None
|
||||||
|
|
||||||
|
# Convenience Data
|
||||||
|
# This is only for convenience. Probably going to keep unless it causes a problem.
|
||||||
|
email: Optional[str]
|
||||||
|
# Maybe add timezone in the future?
|
||||||
|
|
||||||
# Including JSON data
|
# Including JSON data
|
||||||
other_json: Optional[Json]
|
other_json: Optional[Json]
|
||||||
meta_json: Optional[Json]
|
meta_json: Optional[Json]
|
||||||
|
|||||||
Reference in New Issue
Block a user