Closed g-normand closed 2 years ago
As far as I can remember, you need to use the identifier
field (e.g user__notifications_enabled
) in the URL. We don't rely on numeric IDs there, so that you can update/set any preference knowing only its string identifier.
Hello,
I try to use dynamic-preferences but I can't access to UserPreferences easily via Swagger.
In urls.py, I added:
So, I got it in Swagger:
I can access to the list :
=> First of all, I have access to the UserPreference, but without the ID necessary for modification/access
In the admin area, I got the ID : 2 (http://127.0.0.1:8004/admin/dynamic_preferences_users/userpreferencemodel/2/change/ is the URL to change it)
But I can't access or add an UserPreference:
Is there something that I'm doing wrong? Or is it a bug? Thanks Guillaume