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

A string accidentally becomes a tuple #380

Open
crayday opened this issue Jan 31, 2024 · 0 comments
Open

A string accidentally becomes a tuple #380

crayday opened this issue Jan 31, 2024 · 0 comments

Comments

@crayday
Copy link

crayday commented Jan 31, 2024

Location within the Book

  • Book order number: 0131284941
  • Book build date: 2021-06-30
  • Book format: PDF
  • Chapter: 29
  • Section: 3

Description

in [1]: cheese = Cheese.objects.create(
... name='Colby',
... description=('Similar to Cheddar but without undergoing'
'the cheddaring process, Colby is a mild,'
'creamy cheese that was first created in 1885',
'in Colby, Wisconsin.'),
... firmness=Cheese.Firmness.SEMI_HARD)

The extraneous comma after "1885" turns a string into a tuple.

Possible Solutions

Remove the extraneous comma after "1885".

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

No branches or pull requests

1 participant