Skip to content
Snippets Groups Projects
Verified Commit c521ab43 authored by Erwan Rouchet's avatar Erwan Rouchet
Browse files

Add __str__ and __repr__ on WorkerConfiguration

parent b8d3423a
No related branches found
No related tags found
1 merge request!1617Add __str__ and __repr__ on WorkerConfiguration
......@@ -620,6 +620,12 @@ class WorkerConfiguration(IndexableModel):
related_name='configurations',
)
def __str__(self):
return self.name
def __repr__(self):
return f'<WorkerConfiguration {self.name!r} ({self.id})>'
class Meta:
unique_together = (
('worker', 'configuration_hash'),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment