Skip to content

Commit

Permalink
Fix: Custom django admin fields for DDA table
Browse files Browse the repository at this point in the history
Signed-off-by: George J Padayatti <george.padayatti@igrant.io>
  • Loading branch information
georgepadayatti committed Apr 9, 2024
1 parent 94578e4 commit ac98954
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions data_disclosure_agreement/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,12 @@
from .models import DataDisclosureAgreement
from customadminsite.admin import myadminsite

# Register your models here.
myadminsite.register(DataDisclosureAgreement)

class DataDisclosureAgreementAdmin(admin.ModelAdmin):
list_display = ('templateId', 'status', 'createdAt', 'isLatestVersion')

def get_list_display(self, request):
return self.list_display


myadminsite.register(DataDisclosureAgreement, DataDisclosureAgreementAdmin)

0 comments on commit ac98954

Please sign in to comment.