Skip to content

add new permissions for delete action#46

Open
predatell wants to merge 3 commits intomasterfrom
permiss_delete
Open

add new permissions for delete action#46
predatell wants to merge 3 commits intomasterfrom
permiss_delete

Conversation

@predatell
Copy link

No description provided.

Copy link
Member

Choose a reason for hiding this comment

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

старайся все фильтры делать на стороне базы данных. не делай так "user in self.order.warehouse.compas.officers.all()"
Вместо этого self.order.warehouse.compas.officers.filter(pk=user.pk).exists()

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