1👍
you can pass this data to admin template using this method
changelist_view
Ex:
class DynmoDbAdmin(admin.ModelAdmin):
def changelist_view(self, request, extra_context=None):
get data from dynamodb
add this data to extra_context
return super().changelist_view(request, extra_context=extra_context)
after that
you need to extend admin template
follow this pattern
- add
'APP_DIRS': True,
to your settings file. - go to your app and create this folders
templates/admin/model_name
- in this folder create file
change_list.html
this links will help you.
Source:stackexchange.com