]> git.ipfire.org Git - ipfire.org.git/blobdiff - src/backend/accounts.py
location: Use country name from location database
[ipfire.org.git] / src / backend / accounts.py
index 2c9f460871c03876738cb96a7a26646e69a9b34b..a3c8297bc65e9082a478b4999df748c4833f7b77 100644 (file)
@@ -924,7 +924,7 @@ class Account(LDAPObject):
        @property
        def country_name(self):
                if self.country_code:
-                       return countries.get_name(self.country_code)
+                       return self.backend.get_country_name(self.country_code)
 
        @property
        def email(self):