Skip to main content

Django admin like groups of CBVs

Project description

# Getting Started

Import ViewSet to make a basic set of views for a particular model

from viewsets import ViewSet

pizza_viewset = ViewSet()

Viewsets come with these basic views: list, create, detail, update, and delete

You can then import those views into your urls file easy. The following code will install all of your viewsets at the default location.

urlpatterns = ViewSet.all_urls()

Import ViewSetMixin to use mixin with views that you are overriding

from viewsets import ViewSet, ViewSetMixin

Override default views or create your own with the viewset manager.

@pizza_viewset.register("create")
class ToppingCreateView(ViewSetMixin, CreateView):
    ....

Project details


Release history Release notifications

History Node

0.1.29

History Node

0.1.28

History Node

0.1.27

History Node

0.1.26

History Node

0.1.25

History Node

0.1.24

History Node

0.1.23

History Node

0.1.22

History Node

0.1.21

History Node

0.1.20

History Node

0.1.19

History Node

0.1.18

History Node

0.1.17

History Node

0.1.16

History Node

0.1.14

History Node

0.1.13

History Node

0.1.12

History Node

0.1.8

History Node

0.1.7

History Node

0.1.6

History Node

0.1.5

History Node

0.1.4

History Node

0.1.3

History Node

0.1.2

History Node

0.1.1

History Node

0.1.0

This version
History Node

0.0.13

History Node

0.0.12

History Node

0.0.11

History Node

0.0.10

History Node

0.0.8

History Node

0.0.7

History Node

0.0.6

History Node

0.0.5

History Node

0.0.4

History Node

0.0.3

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-viewgroups-0.0.13.tar.gz (12.3 kB) Copy SHA256 hash SHA256 Source None May 15, 2014

Supported by

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