skip to navigation
skip to content

django-viewgroups 0.0.13

Django admin like groups of CBVs

Latest Version: 0.1.29

# 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.

class ToppingCreateView(ViewSetMixin, CreateView):
File Type Py Version Uploaded on Size
django-viewgroups-0.0.13.tar.gz (md5) Source 2014-05-15 12KB