Add Django 1.7 migration.

Change-Id: I8c27d882cfdd420d06b8b13f3190a104bc6c993e