def METHOD_NAME(self, request, obj=None):
    # make all fields readonly
    readonly_fields = list(
        set(
            [field.name for field in self.opts.local_fields]
            + [field.name for field in self.opts.local_many_to_many]
        )
    )
    return readonly_fields