Skip to main content

Simple viewset for models CRUD operations

Project description

Simple viewset for models CRUD operations.

# myapp/
from django.db import models

class MyModel(models.Model):
    class Meta:
        default_permissions = ('add', 'change', 'delete', 'read')
# myapp/
from viewset import ModelViewSet
from .models import MyModel

class MyModelViewSet(ModelViewSet):
    model = MyModel
# myapp/
from django.conf.urls import include
from myapp.views import MyModelViewSet

urlpatterns = [
    url(r'', include(MyModelViewSet().urls())),

Project details

Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
django-simple-viewset-0.1.11.tar.gz (8.3 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page