Welcome to the Treehouse Community
The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.
Nthulane MakgatoCourses Plus Student 19,602 Points
This code is not passing
Please assist as I don't understand why this code is not passing.
from rest_framework import generics from rest_framework import status from rest_framework.response import Response from rest_framework.views import APIView from . import models from . import serializers class GameListCreate(generics.ListCreateAPIView): queryset = models.Game.object.all() serial_class = serializer.GameSerializer
Christopher ShawPython Web Development Techdegree Graduate 58,236 Points
You have a couple of typos.
object should be objects
seial_class should be serializer_class
from rest_framework import generics from . import models from . import serializers class GameListCreate(generics.ListCreateAPIView): queryset = models.Game.objects.all() serializer_class = serializers.GameSerializer