data: change str of ConfigJsonCell model and use label (#55114)
gitea-wip/combo/pipeline/head There was a failure building this commit Details
gitea/combo/pipeline/head Build started... Details

This commit is contained in:
Lauréline Guérin 2021-06-29 18:58:15 +02:00
parent aaee753d02
commit 2911191e7e
No known key found for this signature in database
GPG Key ID: 1FAB9B9B4F93D473
1 changed files with 3 additions and 0 deletions

View File

@ -1966,6 +1966,9 @@ class ConfigJsonCell(JsonCellBase):
key = models.CharField(max_length=50)
parameters = JSONField(blank=True, default=dict)
def __str__(self):
return force_text(_('%s (JSON Cell)') % self.get_label())
@classmethod
def get_cell_types(cls):
l = []