[1.4.x] Restored Python 2.5 compatibility in m2m_through_regress tests.
[1.4.x] Restored Python 2.5 compatibility in m2m_through_regress tests.

Refs #18823.

riklaunim/django-custom-multisite,riklaunim/django-custom-multisite,riklaunim/django-custom-multisite