A DRF app extension to control serializers per action.
Project description
Restframework actions is a DRF app extension to give you more control over the actions of ModelViewSet.
Quick start
Add “rest_framework_actions” to your INSTALLED_APPS setting like this:
INSTALLED_APPS = [ ... 'rest_framework_actions, ]
Note: Please be sure to added after “rest_framework”
Include the polls URLconf in your project urls.py like this:
path('polls/', include('polls.urls')),
Run python manage.py migrate to create the polls models.
Start the development server and visit http://127.0.0.1:8000/admin/ to create a poll (you’ll need the Admin app enabled).
Visit http://127.0.0.1:8000/polls/ to participate in the poll.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for rest-framework-actions-0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | fc12abf47533fc7016f451d9dbbddfa28cf8089230bb259967f7536813675745 |
|
MD5 | 0896d943b6ca3768f3f65fa3aa87297e |
|
BLAKE2b-256 | 2725c220bbdccdc249b226819b936cb8d422a1afa3760620fc56b404d7a142f0 |
Close
Hashes for rest_framework_actions-0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6bc1261dbcda7b1d1a492e33d8e1ded776f5636787a952e96e169ff0029a70a1 |
|
MD5 | 476096505b033a2e1c5a3190aabafd8f |
|
BLAKE2b-256 | 02bf47ca6c938f30b901a76e7cca74266c84832c1bd241a88d45f212293110e6 |