agateblue / django-dynamic-preferences

Dynamic global and instance settings for your django project
https://django-dynamic-preferences.readthedocs.org/
BSD 3-Clause "New" or "Revised" License
346 stars 86 forks source link

"POST" API request not supported by GlobalPreferencesViewSet #263

Closed sa185383 closed 2 years ago

sa185383 commented 2 years ago

The project documentation states that a bulk update of product preferences can be performed via a POST request to the API. When attempting to do this, I get a Method Not Allowed error, and looking into the source code I can see that PreferenceViewSet (which is inherited by GlobalPreferencesViewset), does not inherit from the mixins.CreateModelMixin, which would enable the POST method for this viewset.

If this functionality is desired, then the source code should be updated so that PreferenceViewSet also inherits from mixins.CreateModelMixin.