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

Feauture/add project filters #97

Closed
wants to merge 2 commits into from

Conversation

shoxxd221
Copy link
Contributor

#29

@shoxxd221 shoxxd221 linked an issue Mar 3, 2024 that may be closed by this pull request
Copy link
Contributor

Choose a reason for hiding this comment

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

skill = filters.ModelMultipleChoiceFilter(queryset=Skill.objects.all())
level = filters.MultipleChoiceFilter(choices=LEVEL_CHOICES)

У проектов не должно быть непосредственной связи со скилами и уровнями. Соответственно и фильтрация так работать не должна.

Copy link
Contributor

@ArtemKAF ArtemKAF Mar 4, 2024

Choose a reason for hiding this comment

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

skills = models.ManyToManyField(
Skill, related_name="projects", verbose_name="Проекты"
)
level = models.PositiveSmallIntegerField(
verbose_name="Уровень", choices=LEVEL_CHOICES, null=True, blank=True
)

Связь со скилами и уровнями проектов реализована через тех специалистов, кторые необходимы проекту.

Copy link
Contributor

@ArtemKAF ArtemKAF left a comment

Choose a reason for hiding this comment

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

Нужно удалить изменения в модели проектов и доработать фильтрацию по скилам и уровням.

@ArtemKAF ArtemKAF closed this Apr 13, 2024
@ArtemKAF ArtemKAF deleted the feauture/add-project-filters branch April 13, 2024 19:52
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