core.mixins.DownloadMixin module

Module with the core.mixins.DownloadMixin mixin.

class core.mixins.DownloadMixin.DownloadMixin[source]

Bases: object

Mixin providing a property to check whether a model instance provides a download.

Designed for use in combination with core.mixins.FilePathModelMixin.

property has_download: bool

Checks whether a download is possible for the instance.

get_absolute_download_url()[source]

Returns the url of the download api endpoint.

Return type:

str