Commit 675789d9 authored by maxime's avatar maxime

remove fields not valid from user serialiser

parent 1c1aa2dd
......@@ -17,7 +17,7 @@ from django.core.mail import EmailMessage, send_mail
Conversation._meta.permission_classes = [ThreadPermission]
User._meta.serializer_fields = ['@id', 'username', 'first_name', 'last_name', 'email', 'actions', 'active_actions', 'created_actions', 'get_full_name', 'userprofile', 'name_or_email','recepNumber','ticketNumber']
User._meta.serializer_fields = ['@id', 'username', 'first_name', 'last_name', 'email', 'actions', 'active_actions', 'created_actions', 'get_full_name', 'userprofile', 'name_or_email',]
User._meta.depth = 0
User._meta.get_field('username').verbose_name = "Email"
def active_actions(self):
......
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