mirror of
https://github.com/lemeow125/InfoTech-Backend.git
synced 2024-11-16 22:19:25 +08:00
Hotfix for subjectstudent serializer
This commit is contained in:
parent
5182dfa8da
commit
b5d2ad3cac
1 changed files with 1 additions and 1 deletions
|
@ -6,7 +6,7 @@ from students.models import Student
|
|||
|
||||
class SubjectSerializer(serializers.HyperlinkedModelSerializer):
|
||||
students = serializers.SlugRelatedField(
|
||||
queryset=Student.objects.all(), many=True, slug_field='full_name', allow_null=True)
|
||||
queryset=Student.objects.all(), many=True, slug_field='last_name', allow_null=True)
|
||||
|
||||
class Meta:
|
||||
model = Subject
|
||||
|
|
Loading…
Reference in a new issue