Fakultas Ilmu Komputer UI

Commit a71e0b1d authored by Zamil Majdy's avatar Zamil Majdy
Browse files

[#140654507] #14 Add loginserializer

parent 421c74cb
......@@ -35,3 +35,14 @@ class SupervisorSerializer(serializers.ModelSerializer):
class Meta:
model = Supervisor
fields = '__all__'
class LoginSerializer(serializers.HyperlinkedModelSerializer):
company = CompanySerializer()
supervisor = SupervisorSerializer()
student = StudentSerializer()
class Meta:
model = User
fields = ('url', 'username', 'email', 'is_staff', 'company', 'supervisor', 'student')
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment