Opened 3 years ago

Closed 3 years ago

#20035 closed Uncategorized (invalid)

Last block of commands in python shell show wrong text "What's new?" should be "What's up?"

Reported by: Null Owned by: nobody
Component: Documentation Version: 1.5
Severity: Normal Keywords: doc 1.5
Cc: Null.Jared@… Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no


last block is shown in the doc as:

# Make sure our __unicode__() addition worked.
>>> Poll.objects.all()
[<Poll: What's up?>]

All the "What's up" should actually be "What's new?" in the doc:

# Make sure our __unicode__() addition worked.
>>> Poll.objects.all()
[<Poll: What's new?>]

Also from the start of the doc it would be nice to mention that Python will let you mix tabs and spaces for indentation but this can lead to problems if care is not taken, and possibly a vim configuration suggestion or editor note.

Change History (1)

comment:1 Changed 3 years ago by claudep

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Resolution set to invalid
  • Status changed from new to closed

A little above, you will see that the "Whats' new?" string content has been changed to "Whats' up?":

# Change values by changing the attributes, then calling save().
>>> p.question = "What's up?"

Therefore I think the current tutorial content is fine.

Note: See TracTickets for help on using tickets.
Back to Top