diff --git a/project/accounts/serializers.py b/project/accounts/serializers.py index e0f27bd..8b1d012 100644 --- a/project/accounts/serializers.py +++ b/project/accounts/serializers.py @@ -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'] diff --git a/project/config/settings.py b/project/config/settings.py index 5922d7a..7dc7cb5 100644 --- a/project/config/settings.py +++ b/project/config/settings.py @@ -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" diff --git a/project/db.sqlite3 b/project/db.sqlite3 index 340949e..9a81283 100644 Binary files a/project/db.sqlite3 and b/project/db.sqlite3 differ