django-gfiles views

class gfiles.views.GFileCreateView(**kwargs)[source]

Class to create a save a generic file using the GenericFile model.

Inherits the CreateView class and uses the LoginRequiredMixin

form_class

alias of gfiles.forms.GFileForm

form_valid(form)[source]

If the form is valid, save the associated model.

model

alias of gfiles.models.GenericFile

class gfiles.views.GFileListView(**kwargs)[source]

Class to view a table and filter all of the currently saved GenericFiles

Inherits the FilterView class and uses the SingleTableMixin for viewing the django-tables2 table and uses the ExportMixin so that the table can be exported as a csv file

filterset_class

alias of gfiles.filter.GFileFilter

model

alias of gfiles.models.GenericFile

table_class

alias of gfiles.tables.GFileTableWithCheck

gfiles.views.index(request)[source]

basic index view

gfiles.views.status_update(request)[source]

Updates for tracking status of long processes via celery

gfiles.views.success(request)[source]

basic success view