mirror of
https://github.com/lemeow125/Django-NotesApp.git
synced 2024-11-16 22:19:24 +08:00
Removed unused custom account serializer
This commit is contained in:
parent
c9d25f73c2
commit
5b296ac367
3 changed files with 0 additions and 13 deletions
|
@ -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']
|
||||
|
|
|
@ -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.
Loading…
Reference in a new issue