[1.7.x] Fixed #23575 -- Added a code example for custom AdminSite.

Backport of 4a9b4a23bd from master