Table Of Contents

This Page

Views

views.py

This is the home for the basic CRUD which is included in django-files. These views provide basic functionalities like adding new attachments, editing existing ones, downloading and deleting attachments.

class files.views.AttachmentCreateView(**kwargs)

View responsible for creating new attachments.

form_class

alias of AttachmentForm

model

alias of Attachment

class files.views.AttachmentDeleteView(**kwargs)

Deletes an attachment from the storage backend.

get_template_names()

Add content type object app_name and model to template search path.

model

alias of Attachment

class files.views.AttachmentDetailView(**kwargs)

Returns the details of an attachment.

model

alias of Attachment

class files.views.AttachmentDownloadView(**kwargs)

Returns the attachment file as a HttpResponse.

model

alias of Attachment

class files.views.AttachmentEditView(**kwargs)

Updates an existing attachment with new data.

form_class

alias of AttachmentForm

model

alias of Attachment

class files.views.NextMixin

A mixin which returns the first valid value from either “next” from POST data or success_url. If neither is available, try to get the absolute url from model.