show the sidebar with help during first_boot

This commit is contained in:
fonfon authored and Sunil Mohan Adapa committed 2014-12-06 17:08:37 +05:30
1 parent 9c95da8751
commit e4c11e7d8e
2 files changed
+14 -4

No files matched your search

+9 -1
View File
@@ -33,6 +33,13 @@ class State0View(CreateView):
form_class = State0Form
success_url = reverse_lazy('first_boot:state10')
def get_context_data(self, **kwargs):
"""Set 'sidebar_right' to display the sidebar_right in the templates.
Otherwise we wouldn't be able to include firstboot_sidebar.html"""
context = super(State0View, self).get_context_data(**kwargs)
context['sidebar_right'] = "a"
return context
def get_initial(self):
initial = super(State0View, self).get_initial()
initial['hostname'] = config.get_hostname()
@@ -55,5 +62,6 @@ def state10(request):
kvstore.set('firstboot_state', 10)
return render_to_response('firstboot_state10.html',
{'title': _('Setup Complete')},
{'title': _('Setup Complete'),
'sidebar_right': 'a'},
context_instance=RequestContext(request))