Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed #35869 -- Added explicit warning when AppConfig.create() can't choose from multiple subclasses of AppConfig. #18727

Closed
wants to merge 1 commit into from

Conversation

narasux
Copy link

@narasux narasux commented Oct 27, 2024

Trac ticket number

ticket-35869

Branch description

Added explicit warning when AppConfig.create() use base AppConfig because multiple subclasses of AppConfig were detected in apps.py and none of them specified AppConfig.default as True.

Checklist

  • This PR targets the main branch.
  • The commit message is written in past tense, mentions the ticket number, and ends with a period.
  • I have checked the "Has patch" ticket flag in the Trac system.
  • I have added or updated relevant tests.
  • I have added or updated relevant docs, including release notes if applicable.
  • I have attached screenshots in both light and dark modes for any UI changes.

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

Hello! Thank you for your contribution 💪

As it's your first contribution be sure to check out the patch review checklist.

If you're fixing a ticket from Trac make sure to set the "Has patch" flag and include a link to this PR in the ticket!

If you have any design or process questions then you can ask in the Django forum.

Welcome aboard ⛵️!

@sarahboyce sarahboyce changed the title Fixed #35866 -- Added explicit warning when AppConfig.create() can't choose from multiple subclasses of AppConfig. Fixed #35869 -- Added explicit warning when AppConfig.create() can't choose from multiple subclasses of AppConfig. Oct 28, 2024
@narasux
Copy link
Author

narasux commented Nov 4, 2024

Hi @sarahboyce, do you have any further suggestions or feedback on my PR? Your insights would be greatly appreciated. Thank you!

@sarahboyce
Copy link
Contributor

@narasux I just saw that there was a similar deprecation warning e5fce53#diff-0f8bc657bc27c9f80385c4814c2c2ebc033bda3e03285a7212965309a481cc70R163-R170 which has been removed as we are out of the depreciation period

As you were updating from 3.2 to 4.2, this warning would have been available, the question is now whether we should have a permanent warning or whether this was only a case for upgrading between versions
I think you need to start a discussion on the Django forum and confirm if others think this warning is useful.
I will update the ticket accordingly 👍

@narasux narasux closed this Nov 11, 2024
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.

2 participants