Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disallow updating players' scores directly #13

Open
dkellner opened this issue Apr 3, 2020 · 0 comments
Open

Disallow updating players' scores directly #13

dkellner opened this issue Apr 3, 2020 · 0 comments
Labels
good first issue Good for newcomers task Something needs to be done

Comments

@dkellner
Copy link
Contributor

dkellner commented Apr 3, 2020

We want players to be able to change their name and attributes, but not their score. Specifying read-only-fields where appropriate and adding a test is probably enough: https://www.django-rest-framework.org/api-guide/serializers/#specifying-read-only-fields

@dkellner dkellner added good first issue Good for newcomers task Something needs to be done labels Apr 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers task Something needs to be done
Projects
None yet
Development

No branches or pull requests

1 participant