[Bugfix] Fix the FQN of invalid remote profiles (ie. no domain set)

This commit is contained in:
Gergely Polonkai 2018-07-12 09:18:05 +02:00
parent 5550e5ecf3
commit 5d886a7853

View File

@ -265,7 +265,7 @@ class Profile(db.Model): # pylint: disable=too-few-public-methods
domain = ''
else:
username = self.username
domain = '@' + self.domain
domain = f'@{self.domain}'
return f'<Profile {self.id}(@{username}{domain})>'