Closed josejachuf closed 3 years ago
@josejachuf did you defined a parser class or you just relying onto model itself?
@gi0baro its on the same model
@josejachuf if I understood your code the model is from the Emmett's auth module.
The default model has disabled read-write permissions for the registration_key
field, so you can add to your user model the relevant configuration as stated by doc:
rest_rw = {
'registration_key': True
}
It was that. Thank you so much
Hi @gi0baro it seems to me that there is a bug in parse_params. Maybe I am doing something wrong, but with the following it does not work
attrs is always empty. I put the also the request.body_params to check
The output of the print is:
<sdict {}> <sdict {'id': 3, 'registration_key': 'blocked'}>
Best regards Jose