Emitted credentials won't show as available to be deleted

This commit is contained in:
Elijah 2024-02-29 18:23:56 +01:00
parent abb1baddb3
commit 156b0b4586

View file

@ -253,6 +253,12 @@ class TemplateTable(tables.Table):
return (queryset, True)
def render_delete_schema(self, value, record):
if record.has_credentials():
return value
else:
return ""
class Meta:
model = Schemas
template_name = "idhub/custom_table.html"