mirror of
https://github.com/lemeow125/Ivy-Backend.git
synced 2024-11-17 06:39:26 +08:00
10 lines
243 B
Python
10 lines
243 B
Python
|
|
||
|
from rest_framework import serializers
|
||
|
from django.contrib.auth.models import User
|
||
|
|
||
|
|
||
|
class UserSerializer(serializers.ModelSerializer):
|
||
|
class Meta:
|
||
|
model = User
|
||
|
fields = ('id', 'username', 'email', 'date_joined')
|