mirror of
https://github.com/lemeow125/Borrowing-TrackerBackend.git
synced 2024-11-17 06:19:26 +08:00
Add section to transaction serializer
This commit is contained in:
parent
2e81e0538c
commit
4a9c81fd34
1 changed files with 2 additions and 1 deletions
|
@ -11,10 +11,11 @@ from django.core.cache import cache
|
||||||
class CustomUserSerializer(serializers.ModelSerializer):
|
class CustomUserSerializer(serializers.ModelSerializer):
|
||||||
name = serializers.CharField(source='__str__')
|
name = serializers.CharField(source='__str__')
|
||||||
course = serializers.CharField()
|
course = serializers.CharField()
|
||||||
|
section = serializers.CharField()
|
||||||
|
|
||||||
class Meta:
|
class Meta:
|
||||||
model = CustomUser
|
model = CustomUser
|
||||||
fields = ['id', 'name', 'course']
|
fields = ['id', 'name', 'course', 'section']
|
||||||
|
|
||||||
|
|
||||||
class EquipmentInstanceSerializer(serializers.ModelSerializer):
|
class EquipmentInstanceSerializer(serializers.ModelSerializer):
|
||||||
|
|
Loading…
Reference in a new issue