mirror of
https://github.com/seanmorley15/AdventureLog.git
synced 2025-07-22 22:39:36 +02:00
Add users get and list views
This commit is contained in:
parent
711b974add
commit
ee249fd682
3 changed files with 41 additions and 3 deletions
|
@ -174,7 +174,7 @@ class CustomUserDetailsSerializer(UserDetailsSerializer):
|
|||
|
||||
class Meta(UserDetailsSerializer.Meta):
|
||||
model = CustomUser
|
||||
fields = UserDetailsSerializer.Meta.fields + ('profile_pic',)
|
||||
fields = UserDetailsSerializer.Meta.fields + ('profile_pic', 'uuid', 'public_profile')
|
||||
|
||||
def to_representation(self, instance):
|
||||
representation = super().to_representation(instance)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue