Django 1.5 compatibility fix

Fix an issue where the _name_map cache on generated models' meta classes would contain references to the original, replaced PartitionForeignKey instances rather than the new ForeignKey instances.
Py3k not supported (yet)