fixing bug
This commit is contained in:
parent
0d65dd7686
commit
0b5d8d46d1
File diff suppressed because it is too large
Load Diff
|
@ -69,7 +69,8 @@ class User(UserMixin, Thing):
|
|||
@property
|
||||
def individual(self):
|
||||
"""The individual associated for this database, or None."""
|
||||
return next(iter(self.individuals), None)
|
||||
if self.individuals:
|
||||
return next(iter(self.individuals), None)
|
||||
|
||||
@property
|
||||
def code(self):
|
||||
|
|
Reference in New Issue