#17024: missing import Choice line in tutorial02 --------------------------------------+-------------------- Reporter: stephen.smith@… | Owner: nobody Type: Cleanup/optimization | Status: new Component: Documentation | Version: 1.3 Severity: Normal | Keywords: Triage Stage: Unreviewed | Has patch: 0 Easy pickings: 0 | UI/UX: 0 --------------------------------------+-------------------- In Part 2 of the online tutorial (tutorial02) when you get to the section to inline the Choice model, the example code does not mention that you need to add the following line:
from polls.models import Choice to admin.py and without that line you get an error upon refreshing the admin page. This should be added in the sample code that immediately follows this line in the text: Remove the register() call for the Choice model. Then, edit the Poll registration code to read: This might seem intuitive enough to a python expert (to add the above line) but a beginner will get an error and possibly be stuck if they follow the tutorial instructions word for word. -- Ticket URL: <https://code.djangoproject.com/ticket/17024> 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 django-updates@googlegroups.com. To unsubscribe from this group, send email to django-updates+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-updates?hl=en.