From 0184530802e13ee04e25c51a628902a785e2aaa9 Mon Sep 17 00:00:00 2001 From: Keannu Bernasol Date: Thu, 31 Oct 2024 00:17:22 +0800 Subject: [PATCH] Move back to DRF ImageField --- backend/accounts/serializers.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/backend/accounts/serializers.py b/backend/accounts/serializers.py index c869dce..8f96d97 100644 --- a/backend/accounts/serializers.py +++ b/backend/accounts/serializers.py @@ -1,8 +1,7 @@ from djoser.serializers import UserSerializer as BaseUserSerializer -from rest_framework.serializers import ModelSerializer +from rest_framework.serializers import ModelSerializer, ImageField from rest_framework import serializers from accounts.models import CustomUser -from drf_extra_fields.fields import Base64ImageField from user_groups.serializers import SimpleUserGroupSerializer from django.core.cache import cache from django.core import exceptions as django_exceptions @@ -19,7 +18,7 @@ class SimpleCustomUserSerializer(ModelSerializer): class CustomUserSerializer(BaseUserSerializer): - avatar = Base64ImageField() + avatar = ImageField() class Meta(BaseUserSerializer.Meta): model = CustomUser