-
Notifications
You must be signed in to change notification settings - Fork 149
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
Having trouble adding rule model mixin. -- TypeError: 'class Meta' got invalid attribute(s): rules_permissions #107
Comments
You need to specify the custom metaclass, see that part of the README again. |
@dfunckt yes I have tried that. I guess I do not understand how to set it up exactly. I have tried multiple variations of inheriting at the class model level and meta level. |
Not sure about this but after reading the docs I suspect you might:
|
did anyone get this working? i stumbled over this problem too and can't get it working. Adding |
Did you try to adding RulesModelBase as 'metaclass' parameter as suggested in the documentation? |
I solve it by:
|
I have tried multiple variations for support listed at https://github.com/dfunckt/django-rules#permissions-in-models
I am not sure what I am missing.
This is my current model
traceback:
I also tried checking django polymorphism to see if it was an issue there.
https://github.com/django-polymorphic/django-polymorphic/blob/master/polymorphic/models.py
The text was updated successfully, but these errors were encountered: