Account does not have username

This commit is contained in:
Nick Douma 2020-08-06 17:44:54 +02:00
parent b4d7f66e29
commit 3c59ba6f84

View File

@ -114,7 +114,7 @@ class Account(db.Model):
db.session.rollback()
current_app.logger.error(
'Cannot delete account {0} from DB. DETAIL: {1}'.format(
self.username, e))
self.name, e))
return False
def get_user(self):