Skip to content

3.13 compatibility changes (removed use of deprecated features)#361

Merged
dralley merged 1 commit into
pulp:masterfrom
dralley:master
Apr 23, 2021
Merged

3.13 compatibility changes (removed use of deprecated features)#361
dralley merged 1 commit into
pulp:masterfrom
dralley:master

Conversation

@dralley

@dralley dralley commented Apr 17, 2021

Copy link
Copy Markdown
Contributor

No description provided.

@dralley dralley force-pushed the master branch 7 times, most recently from eb3b8b6 to 0a1daf0 Compare April 20, 2021 22:06
@gerrod3 gerrod3 added this to the 3.3.0 milestone Apr 23, 2021

@gerrod3 gerrod3 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! Are you going to work on the autopublish/distribute afterwards?

def migrate_data_from_old_model_to_new_model_down(apps, schema_editor):
""" Move objects from NewPythonDistribution to PythonDistribution."""
PythonDistribution = apps.get_model('python', 'PythonDistribution')
NewPythonDistribution = apps.get_model('python', 'NewPythonDistribution')

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When migrating down, the operations are done in reverse order correct? So the 3.12 PythonDistribution would have been renamed back to NewPythonDistribution?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's my understanding

@dralley dralley merged commit 4d5fd1b into pulp:master Apr 23, 2021
@gerrod3 gerrod3 linked an issue Apr 27, 2021 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Replace deprecated code for 3.13 compatibility

2 participants