Skip to content

Commit

Permalink
feat(accounts,admin): update list display for ConsentFieldValue
Browse files Browse the repository at this point in the history
Signed-off-by: David Wallace <[email protected]>
  • Loading branch information
MyPyDavid committed Feb 3, 2025
1 parent 3c2a3bc commit 0d694f7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions rdmo/accounts/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ class AdditionalFieldValueAdmin(admin.ModelAdmin):
class ConsentFieldValueAdmin(admin.ModelAdmin):
readonly_fields = ('user', 'consent', 'updated', 'created')

search_fields = ('user__username', 'user__email')
list_display = ('user', 'consent', 'updated')
list_filter = ('consent',)

def has_add_permission(self, request, obj=None):
return False

Expand Down

0 comments on commit 0d694f7

Please sign in to comment.