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
|
@property
|
||||||
def individual(self):
|
def individual(self):
|
||||||
"""The individual associated for this database, or None."""
|
"""The individual associated for this database, or None."""
|
||||||
return next(iter(self.individuals), None)
|
if self.individuals:
|
||||||
|
return next(iter(self.individuals), None)
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def code(self):
|
def code(self):
|
||||||
|
|
Reference in a new issue