Skip to content

Tags

#django

Posts tagged #django on Dynamo Geeks: 1 post from the community, most useful first.

1 post

Posts tagged #django

  1. Question

    Django REST Framework: still N+1 queries after select_related, what am I missing?

    One of my mentees brought this to me and now I am also stuck, which is humbling. We have a simple endpoint listing courses. Each course has a teacher (ForeignKey) and many tags (ManyToMany), and the serializer also shows how many students are enrolled. class CourseSerializer(serializers.ModelSerializer): teacher = TeacherSerializer() tags = TagSerializer(many=True) student_count = serializers.SerializerMethodField()…

    Grace Wanjiru4likes3comments