Commit 9cf0ba63 authored by Matheus Miranda's avatar Matheus Miranda
Browse files

Remove groups info from UserStatsSerializer

parent 286eadfb
......@@ -140,9 +140,8 @@ class UserStatsSerializer(serializers.ModelSerializer):
class Meta:
model = User
fields = ('name', 'username', 'email', 'id', 'image', 'groups',
'last_access', 'accesses_count', 'topics', 'reactions',
'comments')
fields = ('name', 'username', 'email', 'id', 'image', 'last_access',
'accesses_count', 'topics', 'reactions', 'comments')
def get_last_access(self, obj):
count = obj.actor_actions.count()
......@@ -160,4 +159,3 @@ class UserStatsSerializer(serializers.ModelSerializer):
def get_comments(self, obj):
return Comment.objects.filter(author=obj).count()
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