Commit 51abbc49 by Belákovics Ádám

Add flavor endpoint and other fixes

parent 259b86c1
Pipeline #1357 failed with stages
in 5 seconds
...@@ -210,6 +210,10 @@ class FlavorViewSet(ViewSet): ...@@ -210,6 +210,10 @@ class FlavorViewSet(ViewSet):
flavors = Flavor.objects.all() flavors = Flavor.objects.all()
return Response(FlavorSerializer(flavors, many=True).data) return Response(FlavorSerializer(flavors, many=True).data)
def retrieve(self, request, pk):
flavor = self.get_object(pk)
return Response(FlavorSerializer(flavor).data)
def create(self, request, format=None): def create(self, request, format=None):
data = request.data data = request.data
prior = 1 prior = 1
......
Subproject commit 1a19e4355f4af1abb49a3f6e07dc3a6c3f8bdf47 Subproject commit cc7bd247b4457b1020c6442a6c944e1c3ba0caff
...@@ -246,13 +246,13 @@ CHANNEL_LAYERS = { ...@@ -246,13 +246,13 @@ CHANNEL_LAYERS = {
'default': { 'default': {
'BACKEND': 'channels_redis.core.RedisChannelLayer', 'BACKEND': 'channels_redis.core.RedisChannelLayer',
'CONFIG': { 'CONFIG': {
"hosts": [('127.0.0.1', 6379)], "hosts": [('redis', 6379)],
}, },
}, },
} }
CELERY_BROKER_URL = 'redis://localhost:6379' CELERY_BROKER_URL = 'redis://redis:6379'
CELERY_RESULT_BACKEND = "redis://localhost:6379" CELERY_RESULT_BACKEND = "redis://redis:6379"
ASGI_APPLICATION = "recircle.routing.application" ASGI_APPLICATION = "recircle.routing.application"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment