From 3c59ba6f84a6ff923d6cdcad7002c6b52b4f8718 Mon Sep 17 00:00:00 2001 From: Nick Douma Date: Thu, 6 Aug 2020 17:44:54 +0200 Subject: [PATCH] Account does not have username --- powerdnsadmin/models/account.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/powerdnsadmin/models/account.py b/powerdnsadmin/models/account.py index 54bc48e..566b07c 100644 --- a/powerdnsadmin/models/account.py +++ b/powerdnsadmin/models/account.py @@ -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):