Initial attempt at using Service Worker

- Caches facebook profile pictures and static resources
- Removes django-compressor and commited bower_components
- rest fixes
This commit is contained in:
nikolark committed 2015-11-29 16:17:25 +01:00
1 parent 195c49b0fd
commit 2b5c3529d6
468 files changed
+376 -96983

No files matched your search

+5 -2
View File
@@ -1,12 +1,15 @@
from rest_framework import mixins
from rest_framework.decorators import list_route
from rest_framework.response import Response
from rest_framework.viewsets import ModelViewSet
from main.api.serializers import ProductSerializer, ProductStatSerializer
from main.models import Product
from rest_framework.viewsets import GenericViewSet
class ProductViewSet(ModelViewSet):
class ProductViewSet(mixins.ListModelMixin,
mixins.RetrieveModelMixin,
GenericViewSet):
serializer_class = ProductSerializer
queryset = Product.objects.all()