fixing language swticher
This commit is contained in:
parent
83b135763d
commit
896c07930b
2 changed files with 11 additions and 4 deletions
|
|
@ -18,6 +18,13 @@ class IndexView(CreateView):
|
|||
success_url += "#requestform"
|
||||
return success_url
|
||||
|
||||
def get_context_data(self, **kwargs):
|
||||
context = super(IndexView, self).get_context_data(**kwargs)
|
||||
context.update({
|
||||
'base_url': "{0}://{1}".format(self.request.scheme, self.request.get_host())
|
||||
})
|
||||
return context
|
||||
|
||||
def form_valid(self, form):
|
||||
|
||||
context = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue