Fixed #21846 -- Made NestedObjects handle related_name with %(app_label)...

...s or %(class)s.