Commit 4149581 1 parent 393b450 commit 4149581 Copy full SHA for 4149581
File tree 1 file changed +5
-6
lines changed
src/bika/lims/browser/fields
1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -56,14 +56,13 @@ class UIDReferenceField(StringField):
56
56
57
57
@property
58
58
def keep_backreferences (self ):
59
- """Returns whether this field must keep back references. Returns True
59
+ """Returns whether this field must keep back references. Returns False
60
60
if the value for property relationship is None or empty
61
61
"""
62
- if not isinstance (self .relationship , six .string_types ):
63
- return False
64
- if not self .relationship .strip ():
65
- return False
66
- return True
62
+ relationship = getattr (self , "relationship" , None )
63
+ if relationship and isinstance (relationship , six .string_types ):
64
+ return True
65
+ return False
67
66
68
67
def get_relationship_key (self , context ):
69
68
"""Return the configured relationship key or generate a new one
You can’t perform that action at this time.
0 commit comments