#19012: Spaces instead of tabs
-------------------------------+--------------------
Reporter: anonymous | Owner: nobody
Type: Uncategorized | Status: new
Component: Documentation | Version: 1.4
Severity: Normal | Keywords: Tabs
Triage Stage: Unreviewed | Has patch: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------+--------------------
Hi,
I'm new to Django and Python and was following the steps in the tutorial:
https://docs.djangoproject.com/en/1.4/intro/tutorial01/
I edited the models file to create the Polls and Choices and added the
poll, but when I got to the section that starts:
class Poll(models.Model):
# ...
def __unicode__(self):
return self.question
I was unsure of where to add the method, also when I pasted the code into
the text editor I'm using, it pastes the indents as spaces, it took me a
search to find out that indents were important.
Could you replace the example spaces with tabs so that the example works
straight away? This may help other python newbies like myself.
Thanks,
Adam
--
Ticket URL: <https://code.djangoproject.com/ticket/19012>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit https://groups.google.com/groups/opt_out.