Changeset - 4ad26bad3814
[Not reviewed]
0 1 0
Lance Edgar (lance) - 2 months ago 2024-08-13 12:41:08
lance@edbob.org
fix: cascade deletions for Customer -> CustomerShopper
1 file changed with 2 insertions and 1 deletions:
0 comments (0 inline, 0 general)
rattail/db/model/customers.py
Show inline comments
 
@@ -2,7 +2,7 @@
 
################################################################################
 
#
 
#  Rattail -- Retail Software Framework
 
#  Copyright © 2010-2023 Lance Edgar
 
#  Copyright © 2010-2024 Lance Edgar
 
#
 
#  This file is part of Rattail.
 
#
 
@@ -377,6 +377,7 @@ class CustomerShopper(Base):
 
            List of all shoppers (past and present) for the customer.
 
            """,
 
            order_by='CustomerShopper.shopper_number',
 
            cascade='all, delete-orphan',
 
            cascade_backrefs=False))
 

	
 
    person_uuid = sa.Column(sa.String(length=32), nullable=False)
0 comments (0 inline, 0 general)