Changeset - 44a1f8b7358b
[Not reviewed]
0 2 0
Lance Edgar (lance) - 12 years ago 2012-09-28 16:14:41
lance@edbob.org
ignore changes for batch data
2 files changed with 7 insertions and 1 deletions:
0 comments (0 inline, 0 general)
rattail/db/__init__.py
Show inline comments
 
@@ -51,6 +51,12 @@ def before_flush(session, flush_context, instances):
 
        if isinstance(instance, rattail.Change):
 
            return
 

	
 
        # No need to record changes for batch data.
 
        if isinstance(instance, (rattail.Batch,
 
                                 rattail.BatchColumn,
 
                                 rattail.BatchRow)):
 
            return
 

	
 
        # Ignore instances which don't use UUID.
 
        if not hasattr(instance, 'uuid'):
 
            return
rattail/db/extension/model.py
Show inline comments
 
@@ -54,7 +54,7 @@ __all__ = ['Change', 'Store', 'StoreEmailAddress', 'StorePhoneNumber',
 
           'CustomerEmailAddress', 'CustomerPhoneNumber', 'CustomerGroup',
 
           'CustomerGroupAssignment', 'CustomerPerson', 'Employee',
 
           'EmployeeEmailAddress', 'EmployeePhoneNumber',
 
           'BatchColumn', 'Batch', 'LabelProfile']
 
           'BatchColumn', 'Batch', 'BatchRow', 'LabelProfile']
 

	
 

	
 
log = logging.getLogger(__name__)
0 comments (0 inline, 0 general)