Skip to main content

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

  1. 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”

  2. Include the polls URLconf in your project urls.py like this:

    path('polls/', include('polls.urls')),
  3. Run python manage.py migrate to create the polls models.

  4. Start the development server and visit http://127.0.0.1:8000/admin/ to create a poll (you’ll need the Admin app enabled).

  5. Visit http://127.0.0.1:8000/polls/ to participate in the poll.

Project details


Release history Release notifications | RSS feed

This version

0.1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

rest-framework-actions-0.1.tar.gz (4.1 kB view details)

Uploaded Source

Built Distribution

rest_framework_actions-0.1-py3-none-any.whl (5.4 kB view details)

Uploaded Python 3

File details

Details for the file rest-framework-actions-0.1.tar.gz.

File metadata

  • Download URL: rest-framework-actions-0.1.tar.gz
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.1.1 requests-toolbelt/0.9.1 tqdm/4.55.1 CPython/3.6.0

File hashes

Hashes for rest-framework-actions-0.1.tar.gz
Algorithm Hash digest
SHA256 fc12abf47533fc7016f451d9dbbddfa28cf8089230bb259967f7536813675745
MD5 0896d943b6ca3768f3f65fa3aa87297e
BLAKE2b-256 2725c220bbdccdc249b226819b936cb8d422a1afa3760620fc56b404d7a142f0

See more details on using hashes here.

File details

Details for the file rest_framework_actions-0.1-py3-none-any.whl.

File metadata

  • Download URL: rest_framework_actions-0.1-py3-none-any.whl
  • Upload date:
  • Size: 5.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.1.1 requests-toolbelt/0.9.1 tqdm/4.55.1 CPython/3.6.0

File hashes

Hashes for rest_framework_actions-0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6bc1261dbcda7b1d1a492e33d8e1ded776f5636787a952e96e169ff0029a70a1
MD5 476096505b033a2e1c5a3190aabafd8f
BLAKE2b-256 02bf47ca6c938f30b901a76e7cca74266c84832c1bd241a88d45f212293110e6

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page