Commit e3a200db authored by sergio's avatar sergio

Fix get_language when language not set

parent 1d89374b
......@@ -31,14 +31,20 @@ class AppSettings(FormView):
inputdeps = []
maintenance = False
appid=None
lang = '_' + get_language()
try:
lang = '_' + get_language()
except:
lang = '_es'
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):
lang = '_' + get_language()
try:
lang = '_' + get_language()
except:
lang = '_es'
self.appid = self.kwargs.get('appid', None)+lang
data = get_input_deps_fields(request, self.appid)
self.inputdeps = data['inputdeps']
......
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