Skip to content

Commit

Permalink
allow BaseUser subclass to be used, which uses a UUID pk (#263)
Browse files Browse the repository at this point in the history
  • Loading branch information
dantownsend authored Dec 15, 2022
1 parent 1ef6e26 commit a90ccf1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion piccolo_admin/endpoints.py
Original file line number Diff line number Diff line change
Expand Up @@ -776,7 +776,7 @@ async def generate_file_url(
def get_user(self, request: Request) -> UserResponseModel:
return UserResponseModel(
username=request.user.display_name,
user_id=request.user.user_id,
user_id=str(request.user.user_id),
)

###########################################################################
Expand Down

0 comments on commit a90ccf1

Please sign in to comment.