Navigation

  • index
  • previous |
  • django-briefcase v0.1b1 documentation »

Document-related views reference¶

This is a detailed reference of view functions provided by django-briefcase.

briefcase.views.document_list¶

A very thin wrapper for the generic object_list view.

Currently we supply here only the template_object_name argument, but more functionality may come and it is good to keep the generic document list in one place. This also allows for a greater customization by setting some view arguments in the URLconf.

Template receives a document_list context variable which is a QuerySet instance.

briefcase.views.general.recent_documents¶

Renders a list of all documents sorted by creation date.

briefcase.views.general.download_document¶

Sends the document to the browser.

briefcase.views.per_user.my_documents¶

Renders a list of all documents added by current user.

briefcase.views.per_user.documents_for_user¶

Renders a list of documents added by a specific user.

The user can be identified by his username or user_id. If both are specified, username takes precedence.

Table Of Contents

  • Document-related views reference
    • briefcase.views.document_list
    • briefcase.views.general.recent_documents
    • briefcase.views.general.download_document
    • briefcase.views.per_user.my_documents
    • briefcase.views.per_user.documents_for_user

Previous topic

Usage

This Page

  • Show Source

Quick search

Enter search terms or a module, class or function name.

Navigation

  • index
  • previous |
  • django-briefcase v0.1b1 documentation »
© Copyright 2010, Zbigniew Siciarz. Created using Sphinx 1.0.4.