fix contenttypes.generic warning in django 1.7