1
0
mirror of https://gitlab.crans.org/bde/nk20 synced 2025-06-21 18:08:21 +02:00
This commit is contained in:
Nicolas Margulies
2022-09-28 12:50:11 +02:00
parent 977eb7c0d4
commit f099cbc879
3 changed files with 8 additions and 8 deletions

View File

@ -172,6 +172,7 @@ class TrustTable(tables.Table):
else '')}},
verbose_name=_("Delete"),)
class TrustedTable(tables.Table):
class Meta:
attrs = {
@ -184,7 +185,7 @@ class TrustedTable(tables.Table):
show_header = False
trusting = tables.Column(attrs={
'td': {'class': 'text-center', 'width':'100%'}})
'td': {'class': 'text-center', 'width': '100%'}})
trust_back = tables.Column(
verbose_name=_("Trust back"),
@ -200,7 +201,7 @@ class TrustedTable(tables.Table):
def render_trust_back(self, record):
user_note = record.trusted
trusting_note = record.trusting
if Trust.objects.filter(trusted=trusting_note, trusting=user_note) :
if Trust.objects.filter(trusted=trusting_note, trusting=user_note):
return ""
val = '<button id="'
val += str(record.pk)