lino.mixins.uploadable

Defines the Uploadable mixin.

(This module's source code is available here.)

Classes

Uploadable(*args, **kwargs)

Mixin for objects that represent an uploadable file.

class lino.mixins.uploadable.Uploadable(*args, **kwargs)

Bases: lino.core.model.Model

Mixin for objects that represent an uploadable file.

Used by lino.modlib.uploads.Upload.

file

Pointer to the file itself (a Django FileField).

mimetype

The Media type of the file. See also this thread about length of MIME type field.