Commit cf8721da authored by Bruno Martin's avatar Bruno Martin
Browse files

fix profile api update

parent c3d914d9
......@@ -5,6 +5,8 @@ from django.urls import reverse
from django.http import Http404, JsonResponse
from django.utils.translation import ugettext_lazy as _
from django.contrib.auth import get_user_model
from django.contrib.admin.models import LogEntry, CHANGE
from django.contrib.contenttypes.models import ContentType
from requests_oauthlib import OAuth1
from rest_framework.decorators import detail_route, parser_classes, action, list_route
from rest_framework.response import Response
......@@ -164,7 +166,7 @@ class UserViewSet(viewsets.ModelViewSet):
data =
if EmailProfile.objects.filter(user=self.request.user).exists():
eps = EmailProfileSerializer(self.request.user.mailing_profile.get())
eps = EmailProfileSerializer(self.request.user.mailing_profile)
data['mailing_profile'] =
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment