[1.7.x] Fixed #21084 -- Used proxy model's content type for admin log entries.

(the previous commit included only the test)

Backport of 3cba90f22a from master