Changeset - 119b56e93b57
[Not reviewed]
0 1 0
Lance Edgar (lance) - 12 years ago 2012-10-05 10:31:55
lance@edbob.org
ignore UserRole changes if ignoring Role changes
1 file changed with 3 insertions and 2 deletions:
0 comments (0 inline, 0 general)
rattail/db/__init__.py
Show inline comments
 
@@ -66,8 +66,9 @@ def before_flush(session, flush_context, instances):
 
            return
 

	
 
        # Ignore Role instances, if so configured.
 
        if ignore_role_changes and isinstance(instance, edbob.Role):
 
            return
 
        if ignore_role_changes:
 
            if isinstance(instance, (edbob.Role, edbob.UserRole)):
 
                return
 

	
 
        # Provide an UUID value, if necessary.
 
        if not instance.uuid:
0 comments (0 inline, 0 general)