loads of work...

This commit is contained in:
2019-04-28 15:41:00 +02:00
parent 87d683d4af
commit d31b2dd348
21 changed files with 447 additions and 318 deletions

View File

@@ -1,3 +1,9 @@
from django.shortcuts import render
# Create your views here.
from django.shortcuts import render
from rest_framework import viewsets
from .serializers import MealSerializer
from .models import Meal
# Create your views here.
class MealViewSet(viewsets.ModelViewSet):
queryset = Meal.objects.all()
serializer_class = MealSerializer