Correct creation model with RoleChain import roles
for right work this functional
question = models.Question(data, role=role)
class Question(Model):
import_roles = {
'bidder': (
RoleChain() +
blacklist('any_field') +
StatusRole({'any_status'}, whitelist('another_field'))
)
}
- now it fails with error
AttributeError: 'RoleChain' object has no attribute 'fields'
Edited by Ghost User