Ticket #1145 (closed defect: fixed)

Opened 2 years ago

Last modified 5 weeks ago

ran_migration receives the app name as string, but migration as migration object.

Reported by: adam.ness@… Owned by: andrew
Priority: major Milestone:
Component: commands Version: unknown
Keywords: Cc:

Description

I have a code snippet as such:

def check_need_to_run(app=None, migration=None, method=None, *args, **kwargs):
    if app == "foo" and migration == "0041_add_new_bar":
        process_post_migration()


ran_migration.connect(check_need_to_process)

But it errors out because south.migration.base's eq method is being called. The documents should be updated to reflect that the migration object is being passed, or else south.migration.migrator.Migrator should be updated to pass the migration name as a string object.

Change History

comment:1 Changed 2 years ago by andrew

  • Status changed from new to closed
  • Resolution set to fixed

Docs corrected in [aa19d6a1a7b0].

Note: See TracTickets for help on using tickets.