Moves product stat view logic to serializer
- Split frontend into multiple files - Bump frontend deps - Remove unused stuff
This commit is contained in:
1 parent
3b7980ffe9
commit
195c49b0fd
24 files changed
+555
-599
No files matched your search
+1
-7
@@ -1,7 +1,6 @@
|
||||
from django.conf.urls import url
|
||||
from main.api.views import ProductViewSet
|
||||
from main.views.stats import stats_list, stats_orders, stats_orders_hourly, stats_products_realtime, stats_products, \
|
||||
stats_products_per_user, products_json
|
||||
from main.views.stats import stats_list, stats_orders, stats_orders_hourly, stats_products_realtime, stats_products_per_user
|
||||
from main.views.general import register, deposit, log
|
||||
from main.views.reports import inventory, inventory_add, report
|
||||
from main.views.users import create_user, profile
|
||||
@@ -18,12 +17,7 @@ urlpatterns = [
|
||||
url(r'^stats/orders/$', stats_orders, name='stats-orders'),
|
||||
url(r'^stats/orders/hourly$', stats_orders_hourly, name='stats-orders-hourly'),
|
||||
url(r'^stats/orders/products_realtime$', stats_products_realtime, name='stats-products-realtime'),
|
||||
url(r'^stats/products/$', stats_products, name='stats-products'),
|
||||
url(r'^stats/products/(?P<product>[0-9]+)/$', stats_products, name='stats-product'),
|
||||
url(r'^stats/products/by_user/(?P<user_id>[0-9]+)/$', stats_products_per_user, name='stats-products-per-user'),
|
||||
# Products
|
||||
url(r'^products/(?P<product_id>[0-9]+)/$', products_json, name='json-product'),
|
||||
url(r'^products/$', products_json, name='json-products'),
|
||||
# Users
|
||||
url(r'^user/create/$', create_user, name='create-user'),
|
||||
url(r'^profile/$', profile, name='profile'),
|
||||
|
||||
Reference in new issue
Block a user