Trying to access the dashboard index page directly used to
redirect the user that are not logged in to the '/admin/'
login page instead of the Oscar login.
I implemented a new decorator ``staff_member_required`` that is
based on the one provided in ``django.contrib.admin`` and the
``redirect_to_login`` decorator in ``dango.contrib.auth``. It
redirects the user to the '/accounts/login/' page an uses the
``next`` GET parameter to redirect the user back to the
dashboard index page after successful redirect.
Pushed the form-driven functionality back onto its own page within order
management. The dashboard index is now static and the page is more
coherent as a whole.
added statistics & graph to dashboard page (#56777)
I updated the statistics on the dashboard index page to provide
more updates on orders received in the last 24hrs and included the
generation of a graph to illustrate the hourly orders over this
time period.
The graph is a complete CSS solution that needs some cleaning up
and tweaking by FEDs but provides the basic functionality.
moved order summary from orders to dashboard index
I moved the ``OderSummaryView`` from the order section in the
dashboard to the main dashboard index and merged it with the
``IndexView``. I removed the summary template and merged the
relevant data into the dashboard template.