mirror of
https://github.com/jwinterm/modoboa.git
synced 2026-10-17 05:41:25 +02:00
Use a classmethod here.
This commit is contained in:
@@ -122,9 +122,10 @@ try:
|
||||
return super().authenticate(*args, **kwargs)
|
||||
return None
|
||||
|
||||
def setting_fullname(self, setting):
|
||||
@classmethod
|
||||
def setting_fullname(cls, setting):
|
||||
"""Return fullname for given setting."""
|
||||
return "{}{}".format(self.setting, self.settings_prefix)
|
||||
return "{}{}".format(cls.settings_prefix, setting)
|
||||
|
||||
|
||||
class LDAPBackend(LDAPBackendBase):
|
||||
|
||||
Reference in New Issue
Block a user