Gabriel Hurley 874107d5b1 Panel scaffolding fixes.
Adds a missing class name to registration (Fixes bug 999358)
Cleans up the example template path (fixes bug 999363)

Change-Id: Idf5a38cad31872e05c47f918b4f729f70db3ae0d
2012-05-14 15:35:46 -07:00

11 lines
291 B
Python

from horizon import views
class IndexView(views.APIView):
# A very simple class-based view...
template_name = '{{ dash_name }}/{{ panel_name }}/index.html'
def get_data(self, request, context, *args, **kwargs):
# Add data to the context here...
return context