API

Class-based URL Config

class viewflow.urls.route(prefix, viewset)

A viewset url

class viewflow.urls.BaseViewset

Class-based django routing configuration

class viewflow.urls.ViewsetMeta(name, bases, attrs)

Collect urls declared on the based classes.

class viewflow.urls.Viewset(urls=None, **initkwargs)

Declarative, class-based django routing configuration

An Viewset class automatically collect URL patterns from class attributes with names ends on _url and includes nested Viewset classes from attributes with names ends on ‘_urls’.

Viewset classes could be inherited, extended, and have overridden attributes.

class viewflow.urls.IndexViewMixin

Redirect from / to the first non-parameterized view of the Viewset class.

Frontend Viewset

class viewflow.urls.Site(*, title=None, **kwargs)
class viewflow.urls.Application(**kwargs)
class viewflow.urls.AppMenuMixin(**kwargs)

A route that can be listed in an Application menu.

Frontend CRUD

class viewflow.urls.BaseModelViewset(**kwargs)
class viewflow.urls.ModelViewset(**kwargs)

List/Create/Update/Delete for a model.

class viewflow.urls.ReadonlyModelViewset(**kwargs)

Readonly model viewset with List and object details view only

class viewflow.urls.DeleteViewMixin
class viewflow.urls.DetailViewMixin
class viewflow.views.CreateModelView(**kwargs)
class viewflow.views.DeleteModelView(**kwargs)
class viewflow.views.DetailModelView(**kwargs)
class viewflow.views.ListModelView(**kwargs)

Render some list of objects.

class viewflow.views.UpdateModelView(**kwargs)
class viewflow.views.DeleteBulkActionView(**kwargs)
class viewflow.views.Action(name, url=None, icon=None)

)

Middleware

class viewflow.middleware.SiteMiddleware(get_response)

Set site and app attributes on request.resolver_match object.

class viewflow.middleware.TurbolinksMiddleware(get_response)

Send the Turbolinks-Location header in response to a visit that was redirected, and Turbolinks will replace the browser’s topmost history entry .