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

Implement editing of projects taking with status changes #206

Merged
merged 2 commits into from
Nov 17, 2023

Conversation

Olga-koml
Copy link
Collaborator

Реализовано редактирование проекта/черновика. Учитывается переход из одного статуса в другой.
Добавлен сериализатор для частичного редактирования активного проекта.
В свагере отключена базовая регистрация, реализована регистрация по токену, добавлено описании шаблона.

@@ -270,12 +265,18 @@ def update(self, instance, validated_data):
status_approve = instance.status_approve
if (
status_approve != Project.EDITING
or status_approve != Project.REJECTED
and status_approve != Project.REJECTED
):
Copy link
Collaborator

Choose a reason for hiding this comment

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

лучше status_approve not in (Project.EDITING, Project.REJECTED)

@Olga-koml Olga-koml merged commit 8359dcf into develop Nov 17, 2023
1 check passed
@Olga-koml Olga-koml deleted the editing-projects branch December 4, 2023 12:46
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.

2 participants