mirror of
https://github.com/lemeow125/InfoTech-Backend.git
synced 2024-11-17 06:29:26 +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):
|
class SubjectSerializer(serializers.HyperlinkedModelSerializer):
|
||||||
students = serializers.SlugRelatedField(
|
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:
|
class Meta:
|
||||||
model = Subject
|
model = Subject
|
||||||
|
|
Loading…
Reference in a new issue