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

Solution #384

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Solution #384

wants to merge 3 commits into from

Conversation

Wonsky1
Copy link

@Wonsky1 Wonsky1 commented Dec 5, 2023

No description provided.

)


class PermissionMixin:
Copy link
Contributor

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



class PermissionMixin:
permission_classes = [IsAdminOrIfAuthenticatedReadOnly]
Copy link
Contributor

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?)

extra_kwargs = {
"password": {
"write_only": True,
"min_length": 8
Copy link
Contributor

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

Copy link

@LiudmylaKulinchenko LiudmylaKulinchenko left a comment

Choose a reason for hiding this comment

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

Nice work ☃

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

Successfully merging this pull request may close these issues.

3 participants