mirror of
https://github.com/lemeow125/Ivy-Backend.git
synced 2025-01-19 07:13:07 +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')
|