Fix migration compatibility with Python 2.6

@mbertheau provided a fix in #1176. That commit has been applied to
master. This is fixing the same issue for Oscar 0.6