Change string representation of snapshots
This commit is contained in:
parent
20810ee732
commit
e86d67ae35
|
|
@ -140,8 +140,8 @@ class SnapshotNode(DjangoObjectType):
|
||||||
]
|
]
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def resolve_title(parent, info, **kwargs):
|
def resolve_title(parent: Snapshot, info, **kwargs):
|
||||||
return parent.module.title
|
return f'Snapshot {parent.id}'
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def resolve_meta_title(parent, info, **kwargs):
|
def resolve_meta_title(parent, info, **kwargs):
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue