Changeset - 5be8e0003f80
[Not reviewed]
0 1 0
Lance Edgar (lance) - 19 months ago 2023-03-09 14:08:22
lance@edbob.org
Avoid cascading backref for product -> purchase item

per SA 2.0 warnings
1 file changed with 2 insertions and 1 deletions:
0 comments (0 inline, 0 general)
rattail/db/model/purchase.py
Show inline comments
 
@@ -2,7 +2,7 @@
 
################################################################################
 
#
 
#  Rattail -- Retail Software Framework
 
#  Copyright © 2010-2021 Lance Edgar
 
#  Copyright © 2010-2023 Lance Edgar
 
#
 
#  This file is part of Rattail.
 
#
 
@@ -181,6 +181,7 @@ class PurchaseItemBase(object):
 
            """,
 
            backref=orm.backref(
 
                '_{}_records'.format(cls.__tablename__),
 
                cascade_backrefs=False,
 
                doc="""
 
                List of ``{}`` records associated with the product.
 
                """.format(cls.__tablename__)))
0 comments (0 inline, 0 general)