-
Notifications
You must be signed in to change notification settings - Fork 728
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
Solution #384
base: master
Are you sure you want to change the base?
Solution #384
Conversation
cinema/permissions.py
Outdated
) | ||
|
||
|
||
class PermissionMixin: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it'd be better to move this mixin into another module(mixins.py or smth like that), and not to mix up mixins and permission
cinema/permissions.py
Outdated
|
||
|
||
class PermissionMixin: | ||
permission_classes = [IsAdminOrIfAuthenticatedReadOnly] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
btw, you don't use this mixin, so why do you need it?)
user/serializers.py
Outdated
extra_kwargs = { | ||
"password": { | ||
"write_only": True, | ||
"min_length": 8 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
DUe to the task description password length must be >= 5 symbols
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work ☃
No description provided.