Skip to content

Conversation

matthewelwell
Copy link
Contributor

@matthewelwell matthewelwell commented Aug 20, 2025

Changes

This is a re-implementation of #5848 , but I need to verify with @Zaimwa9 what the reason for the original implementation is at it seems unnecessary to me.

How did you test this code?

Updated / added unit tests.

@matthewelwell matthewelwell requested a review from a team as a code owner August 20, 2025 10:42
@matthewelwell matthewelwell requested review from gagantrivedi and removed request for a team August 20, 2025 10:42
Copy link

vercel bot commented Aug 20, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

3 Skipped Deployments
Project Deployment Preview Comments Updated (UTC)
docs Ignored Ignored Aug 20, 2025 10:42am
flagsmith-frontend-preview Ignored Ignored Aug 20, 2025 10:42am
flagsmith-frontend-staging Ignored Ignored Aug 20, 2025 10:42am

@matthewelwell matthewelwell requested review from Zaimwa9 and removed request for gagantrivedi August 20, 2025 10:42
@github-actions github-actions bot added api Issue related to the REST API fix labels Aug 20, 2025
Copy link
Contributor

github-actions bot commented Aug 20, 2025

Docker builds report

Image Build Status Security report
ghcr.io/flagsmith/flagsmith-api-test:pr-5945 Finished ✅ Skipped
ghcr.io/flagsmith/flagsmith-e2e:pr-5945 Finished ✅ Skipped
ghcr.io/flagsmith/flagsmith-frontend:pr-5945 Finished ✅ Results
ghcr.io/flagsmith/flagsmith-api:pr-5945 Finished ✅ Results
ghcr.io/flagsmith/flagsmith-private-cloud:pr-5945 Finished ✅ Results
ghcr.io/flagsmith/flagsmith:pr-5945 Finished ✅ Results

)


class CustomTokenCreateSerializer(TokenCreateSerializer): # type: ignore[misc]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it just needs to be added to the view to pass
serializer_class = CustomTokenCreateSerializer

Thanks for jumping on it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api Issue related to the REST API fix
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants