Commit 1d89374b authored by root's avatar root

fix: appid trnsalted in API

parent 4a2fcfab
......@@ -7,7 +7,7 @@ from django.http import HttpResponseRedirect, HttpResponse
from django.views.generic.edit import FormView
from django.urls import reverse_lazy, reverse
from django.utils.encoding import force_bytes
from django.utils.translation import ugettext_lazy as _
from django.utils.translation import ugettext_lazy as _, get_language
from django.contrib import messages
# contrib
from ldap3 import HASHED_SALTED_SHA
......@@ -31,13 +31,15 @@ class AppSettings(FormView):
inputdeps = []
maintenance = False
appid=None
lang = '_' + get_language()
def get_success_url(self):
"""Returns the URL to redirect user after a succesful submit"""
return self.request.get_full_path()
def get(self, request, **kwargs):
self.appid = self.kwargs.get('appid', None)
lang = '_' + get_language()
self.appid = self.kwargs.get('appid', None)+lang
data = get_input_deps_fields(request, self.appid)
self.inputdeps = data['inputdeps']
self.maintenance = data['maintenance']
......
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