tangentlabs/django-oscar — pull request #431 by andrefsp (2012-12-19 19:16:22+00:00)
Title: Moved _get_generator inside report.views.IndexView

Did see any particular special reason why _get_generator to not be a
method of IndexView.

Also, made report_form_class and generator_repository views attributes
so they can be more easily overriden.

::
# views.py
from oscar.apps.dashboard.reports import views
from myapp.reports.forms import MyReportForm
from myapp.reports.generators import MyGeneratorRepository

class MyReportView(views.IndexView):
report_form_class = MyReportForm
generator_repository = MyGeneratorRepository