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

In modern DRF CurrentUserDefault might be used instead of custom mixing Please mind the properties naming (course root) #3

Closed
stl-pavelsushko opened this issue Dec 15, 2020 · 1 comment

Comments

@stl-pavelsushko
Copy link

No description provided.

@business-maksim-duksin
Copy link
Owner

Due to encode/django-rest-framework#5886 i had two ways of associating objects with users:

  1. Overwrite Serializer's save().
  2. Use perform_create() at the view level.

Docs recommend 2. https://www.django-rest-framework.org/tutorial/4-authentication-and-permissions/#associating-snippets-with-users.

Properties naming fixed in 4a9f635.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants