Commit 71189130 authored by jocelyn's avatar jocelyn

Rename coin.dsl_ldap → dsl_ldap

S'harmonise avec les autres apps : les apps obligatoires sont dans coin/ et les
optionelles à la racine.
parent 4845b2e9
default_app_config = 'coin.dsl_ldap.apps.DSLLDAPConfig'
default_app_config = 'dsl_ldap.apps.DSLLDAPConfig'
......@@ -8,7 +8,7 @@ from . import urls
class DSLLDAPConfig(AppConfig, coin.apps.AppURLs):
name = 'coin.dsl_ldap'
name = 'dsl_ldap'
verbose_name = "xDSL (LDAP)"
exported_urlpatterns = [('dsl_ldap', urls.urlpatterns)]
......@@ -47,7 +47,6 @@ class RadiusGroup(models.Model):
class Meta:
verbose_name = _("radius group")
verbose_name_plural = _("radius groups")
db_table = "dsl_ldap_radiusgroup"
class DSLConfiguration(CoinLdapSyncMixin, Configuration):
......@@ -69,8 +68,10 @@ class DSLConfiguration(CoinLdapSyncMixin, Configuration):
password = models.CharField(max_length=256, blank=True,
verbose_name=_("password"),
help_text=_("Will be stored in cleartext! Automatically generated if empty"))
objects = NetManager()
def full_login(self):
"""Login with realm"""
return "{}{}@{}".format(self.login, self.radius_group.suffix,
......@@ -141,7 +142,7 @@ class DSLConfiguration(CoinLdapSyncMixin, Configuration):
class Meta:
verbose_name = _("DSL line")
verbose_name_plural = _("DSL lines")
db_table = "dsl_ldap_dslconfiguration"
# db_table = "dsl_ldap_dslconfiguration"
class LdapDSLConfig(ldapdb.models.Model):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment