Removed unused custom account serializer

This commit is contained in:
keannu125 2023-04-15 16:54:07 +08:00
parent c9d25f73c2
commit 5b296ac367
3 changed files with 0 additions and 13 deletions

View file

@ -1,13 +1,3 @@
from django.contrib.auth.models import User
from rest_framework import serializers
from notes.models import Note
class CustomUserSerializer(serializers.ModelSerializer):
notes = serializers.PrimaryKeyRelatedField(
many=True, allow_null=True, read_only=True)
class Meta:
model = User
fields = ['id', 'username', 'notes']
read_only_fields = ['id', 'notes']

View file

@ -153,9 +153,6 @@ DJOSER = {
'SEND_ACTIVATION_EMAIL': True,
'SEND_CONFIRMATION_EMAIL': True,
'ACTIVATION_URL': 'activation/{uid}/{token}',
'SERIALIZERS': {
'user': 'accounts.serializers.CustomUserSerializer'
},
}
EMAIL_HOST = "smtp.gmail.com"

Binary file not shown.