From: Michael Tremer Date: Thu, 19 Nov 2020 11:20:15 +0000 (+0000) Subject: accounts: Correctly return when objects cannot be sorted X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a2532d7cf93eb1f0312d009ddff5cd37d6a78915;p=ipfire.org.git accounts: Correctly return when objects cannot be sorted Signed-off-by: Michael Tremer --- diff --git a/src/backend/accounts.py b/src/backend/accounts.py index a3c8297b..8da02a58 100644 --- a/src/backend/accounts.py +++ b/src/backend/accounts.py @@ -644,6 +644,8 @@ class Account(LDAPObject): if isinstance(other, self.__class__): return self.name < other.name + return NotImplemented + def _clear_cache(self): # Delete cached attributes self.memcache.delete("accounts:%s:attrs" % self.dn)