If possible, can you please share the link of the plugin that you were working on at that time?
Thanks for the great explanations. Am I right to assume that it would be possible to use add_to_serializer, something like op_likes? I’m not sure why this happens, but I can only have access to the op_likes_count when I order by it (as in order=op_likes), but I wanted to have such numbers without having to order by it.
Is there also a way to use it from JavaScript? I’m currently looking at `showOpLikes` doesn't work right away, but after clicking back and forth - #6 by pfaffman which was closed.
No, you can’t change an API from a client ![]()
This should absolutely not be the default. Not all user custom fields should be displayed to the user (e.g. see Staff Notes).
Eu me pergunto se “adicionar ao serializador” poderia ser uma caixa de seleção ao criar um campo de usuário personalizado na interface do usuário. E então o PR poderia ser para verificar se o campo de usuário personalizado tem “adicionar ao serializador” e, se sim, adicioná-lo.
5 posts foram divididos em um novo tópico: Adicionar ao serializador de usuário não funciona para o objeto de usuário atual