Skip to content
Snippets Groups Projects
Commit d0581373 authored by Calum Mackervoy's avatar Calum Mackervoy
Browse files

id no longer appended to non LDP-Account user model

parent 02b9008f
No related branches found
No related tags found
1 merge request!122Minor: id no longer appended to non LDP-Account user model
Pipeline #4994 passed with stage
in 42 seconds
......@@ -197,7 +197,4 @@ if 'djangoldp_account' not in settings.DJANGOLDP_PACKAGES:
webid = '{0}{1}'.format(settings.BASE_URL, reverse_lazy('user-detail', kwargs={'pk': self.pk}))
return webid
if get_user_model()._meta.serializer_fields is None:
get_user_model()._meta.serializer_fields = []
get_user_model()._meta.serializer_fields.append('@id')
get_user_model().webid = webid
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment