Fakultas Ilmu Komputer UI

Commit 7e7d67a0 authored by M. Reza Qorib's avatar M. Reza Qorib
Browse files

Merge branch 'UserStory2' of https://gitlab.com/PPL2017csui/PPLA1 into UserStory2

parents 977a3d16 feae9264
......@@ -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')
This source diff could not be displayed because it is too large. You can view the blob instead.
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