dfunckt / django-rules

Awesome Django authorization, without the database

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Are the predicates defined on a model called automatically?

MatejMijoski opened this issue · comments

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?