]> git.ipfire.org Git - ipfire.org.git/commitdiff
accounts: Correctly return when objects cannot be sorted
authorMichael Tremer <michael.tremer@ipfire.org>
Thu, 19 Nov 2020 11:20:15 +0000 (11:20 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Thu, 19 Nov 2020 11:20:15 +0000 (11:20 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/backend/accounts.py

index a3c8297bc65e9082a478b4999df748c4833f7b77..8da02a583af55920236b4bd04804e0b3cc6ff524 100644 (file)
@@ -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)