Skip to content

Fixed #35090 -- Deprecated registering URL converters with the same name.#17703

Merged
felixxm merged 1 commit intodjango:mainfrom
salvo-polizzi:ticket_35090
Feb 23, 2024
Merged

Fixed #35090 -- Deprecated registering URL converters with the same name.#17703
felixxm merged 1 commit intodjango:mainfrom
salvo-polizzi:ticket_35090

Conversation

@salvo-polizzi
Copy link
Copy Markdown
Contributor

Ticket 35090

@timgraham timgraham changed the title Fixed #35090 -- Avoid having converters with the same name Fixed #35090 -- Disallowed registering URL converters with the same name. Jan 6, 2024
@adamchainz
Copy link
Copy Markdown
Member

THank you for the work, though the ticket is not accepted yet. I think we should wait to see some input from others to accept it.

One change that your PR will require is using the deprecation policy. We would need to warn at first, and then two versions later we can raise an exception. Read the policy and check out some recent PRs that have deprecated other features.

@salvo-polizzi salvo-polizzi force-pushed the ticket_35090 branch 2 times, most recently from c4a2688 to e82c59b Compare January 10, 2024 10:31
Copy link
Copy Markdown
Member

@felixxm felixxm left a comment

Choose a reason for hiding this comment

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

@salvo-polizzi Thanks 👍 I left comments.

@salvo-polizzi salvo-polizzi force-pushed the ticket_35090 branch 4 times, most recently from e7870c5 to 6b715af Compare February 22, 2024 17:34
Copy link
Copy Markdown
Member

@adamchainz adamchainz left a comment

Choose a reason for hiding this comment

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

Thanks for the continued work. I’ve left some comments on the tests.

@salvo-polizzi
Copy link
Copy Markdown
Contributor Author

Thanks @adamchainz for review

@felixxm felixxm self-assigned this Feb 23, 2024
Copy link
Copy Markdown
Member

@adamchainz adamchainz left a comment

Choose a reason for hiding this comment

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

Minor formatting adjustment but otherwise LGTM!

@felixxm felixxm changed the title Fixed #35090 -- Disallowed registering URL converters with the same name. Fixed #35090 -- Deprecated registering URL converters with the same name. Feb 23, 2024
Copy link
Copy Markdown
Member

@felixxm felixxm left a comment

Choose a reason for hiding this comment

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

@salvo-polizzi Thanks 👍 I pushed final edits 👍

@adamchainz @shangxiao Thanks for reviews.

@felixxm felixxm merged commit 6e1ece7 into django:main Feb 23, 2024
@salvo-polizzi salvo-polizzi deleted the ticket_35090 branch March 27, 2024 15:56
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.

4 participants