Commit ad44039d authored by jocelyn's avatar jocelyn

Adapt dsl_ldap module to new pluggable apps style

parent 62549d52
default_app_config = 'coin.dsl_ldap.apps.DSLLDAPConfig'
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.apps import AppConfig
import coin.apps
from . import urls
class DSLLDAPConfig(AppConfig, coin.apps.AppURLs):
name = 'coin.dsl_ldap'
verbose_name = "xDSL (LDAP)"
exported_urlpatterns = [('dsl_ldap', urls.urlpatterns)]
......@@ -45,6 +45,7 @@ class RadiusGroup(models.Model):
class Meta:
verbose_name = _("radius group")
verbose_name_plural = _("radius groups")
db_table = "dsl_ldap_radiusgroup"
class DSLConfiguration(CoinLdapSyncMixin, Configuration):
......@@ -137,6 +138,7 @@ class DSLConfiguration(CoinLdapSyncMixin, Configuration):
class Meta:
verbose_name = _("DSL line")
verbose_name_plural = _("DSL lines")
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