Rewrite ModelVersion.__str__
Closes #1605 (closed)
ModelVersion.__str__
is called when building the worker results deletion RQ tasks and in the Django admin. It expected ModelVersion.hash
and ModelVersion.tag
to be set, but both can be None
or empty strings. ModelVersion.hash
also refers to the MD5 hash of the archive, and is not displayed in the frontend, so I replaced that with the ID that is copyable from the frontend and already inserted in WorkerRun summaries.