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 #29178 -- Made Index.fields accept a tuple. #9368

Merged
merged 1 commit into from
Mar 8, 2018

Conversation

zauddelig
Copy link
Contributor

One should really promote the use of tuples rather than lists to avoid creepy side effects.

@timgraham
Copy link
Member

Historically, supporting list and tuples has sometimes led to bugs due to one or the other not being completely tested. I think it also leaves some people wondering about when to use one or another. Can you give an example of a problem in practice?

p.s. A Trac ticket is required for all non-typo changes.

@timgraham timgraham changed the title Index.fields default value was not immutable Fixed #29178 -- Made Index.fields accept a tuple. Mar 7, 2018
@timgraham
Copy link
Member

I made a couple edits, want to check it?

@zauddelig
Copy link
Contributor Author

ok thank you :)

@timgraham timgraham merged commit 10c0fe5 into django:master Mar 8, 2018
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