On 05/25/2016 04:26 AM, Finucane, Stephen wrote:
+class UserSerializer(HyperlinkedModelSerializer): >+ class Meta: >+ model = User >+ fields = ('username',)We're going to need to expose a lot more information than this to make things useful. For example: name, email, linked 'people', projects etc.
Keep in mind this is purely to allow delegates to be set on a patch. The current UI's don't expose any of this information (unless you go to manage your own profile). I've added a few more fields to this object v5 including url, username, first_name, last_name, and email. I'm not sure if other stuff like linked people and projects should be exposed globlly? It sort of feels like an orthogonal feature request.
_______________________________________________ Patchwork mailing list [email protected] https://lists.ozlabs.org/listinfo/patchwork
