Opened 14 years ago

Last modified 13 years ago

#13538 closed

Mistakes in http://docs.djangoproject.com/en/dev/topics/db/queries/ — at Initial Version

Reported by: yipengh87@… Owned by: nobody
Component: Documentation Version: 1.1
Severity: Keywords:
Cc: Triage Stage: Ready for checkin
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

The referenced class uses a capital E....
class Entry(models.Model)

But under "Saving ForeignKey and ManyToManyField fields",
a small E is used...

entry.blog = cheese_blog
entry.save()

Before the above line can be executed, there is also a missing import statement...

from mysite.blog.models import *

Change History (0)

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