django: Add support for migrations.

In both South and django.db.migrations modes.