To support multi-currency sites. This commit also made the order totals
a mandatory input for creating an order, which meant quite a few tests
had to change to support the new API.
This allows updating code in both places, if necessary. Getting Django
1.5 support would be painful otherwise. This also removes the circular
dependency of django-oscar-testsupport on Oscar.
The requirements were merged. The imports were updated
accordingly. Unused imports in the touched files were removed. No
further changes.
* Re-skin of the dashboard home page.
* Ensure the graph on the home page dashboard shows only 12 segments on the x-axis and not 24.
* Add auto refresh of 5mins to dashboard index
Fixes 366
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.