dfunckt / django-rules

Awesome Django authorization, without the database
MIT License
1.86k stars 148 forks source link

Are the predicates defined on a model called automatically? #146

Closed MatejMijoski closed 3 years ago

MatejMijoski commented 3 years ago

I declared a test model that inherits from RulesModel. I added a test predicate in the Meta class mapped to the add action however I'm not sure whether the intended behavior of this feature is, for the predicate to be executed on every call of save() on the model or is this just so that we have simpler access to some model predicates?