See also

  • The Using migrations recipe
  • The Changing a foreign key to the many-to-many field recipe