How to implement permissions for individual objects of a model?

There is a model Action, it will be stored actions to the user. These actions should be limited so that some users were inaccessible part of the action
How to implement it?
Google did not answer
March 23rd 20 at 19:44
1 answer
March 23rd 20 at 19:46
Solution
class Action:
 class Meta:
 permissions = (("can_something", "something"),)

Stored in the database
python manage.py makemigrations <app>
python manage.py migrate

In the right place check right
action.has_perm("can_something")

Find more questions by tags ORMDjango