core.mixins.UploadMixin module

Module with the core.mixins.UploadMixin mixin.

class core.mixins.UploadMixin.Uploadable(*args, **kwargs)[source]

Bases: Protocol

Protocol defining the required attributes of a class implementing this mixin.

BASENAME: ClassVar[str]
pk: Any
__init__(*args, **kwargs)
_is_protocol = True
class core.mixins.UploadMixin.UploadMixin[source]

Bases: object

Mixin providing url methods for the upload page of the model.

classmethod get_upload_web_url_name()[source]

Gets the edit webview urlname for the model.

Return type:

str

Returns:

The edit webview urlname for the model.

get_absolute_upload_url()[source]

Gets the upload webview url for the model instance.

Return type:

str

Returns:

The upload webview url for the model instance.

Parameters:

self (Uploadable)