core.mixins.UploadMixin module¶
Module with the core.mixins.UploadMixin mixin.
- class core.mixins.UploadMixin.Uploadable(*args, **kwargs)[source]¶
Bases:
ProtocolProtocol defining the required attributes of a class implementing this mixin.
- __init__(*args, **kwargs)¶
- _is_protocol = True¶
- class core.mixins.UploadMixin.UploadMixin[source]¶
Bases:
objectMixin 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:
- Returns:
The edit webview urlname for the model.
- get_absolute_upload_url()[source]¶
Gets the upload webview url for the model instance.
- Return type:
- Returns:
The upload webview url for the model instance.
- Parameters:
self (Uploadable)