Workaround bug template : URL codee en dur
This commit is contained in:
parent
d59025e6ec
commit
a5e7b9b549
|
@ -1,3 +1,4 @@
|
|||
from django.core.urlresolvers import reverse
|
||||
from django.db import models
|
||||
from passerelle.base.models import BaseResource
|
||||
from passerelle.utils.jsonresponse import APIError
|
||||
|
@ -9,6 +10,8 @@ import sys
|
|||
#sys.path.insert(0, "/home/paul/Documents/paul-synchro/django/sp_sso/saml/")
|
||||
#import utils
|
||||
|
||||
# get_all_apps
|
||||
# get_models
|
||||
|
||||
#TODO
|
||||
# ldap3 instead of python-ldap
|
||||
|
@ -27,6 +30,7 @@ def get_org_unit(u):
|
|||
return 0
|
||||
|
||||
class LDAPResource(BaseResource):
|
||||
category = 'Business Process Connectors'
|
||||
class Meta:
|
||||
verbose_name = 'LDAP'
|
||||
|
||||
|
@ -39,7 +43,8 @@ class LDAPResource(BaseResource):
|
|||
|
||||
@classmethod
|
||||
def get_add_url(cls):
|
||||
return reverse('ldap-add')
|
||||
#return reverse('ldap-add')
|
||||
return '/manage/ldap/add'
|
||||
|
||||
@classmethod
|
||||
def get_verbose_name(cls):
|
||||
|
|
|
@ -13,6 +13,7 @@
|
|||
#
|
||||
# You should have received a copy of the GNU Affero General Public License
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
from views import *
|
||||
|
||||
from django.conf.urls import patterns, include, url
|
||||
|
||||
|
|
Reference in New Issue