Code

Opened 3 years ago

Closed 3 years ago

#15972 closed Cleanup/optimization (invalid)

Error in documentation on web site

Reported by: otov4its@… Owned by: otov4its
Component: Documentation Version: 1.3
Severity: Normal Keywords: documentation, F object
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: yes UI/UX:

Description

In http://docs.djangoproject.com/en/1.3/topics/db/queries/#query-expressions wrote: from django.db.models import F
But F object actually in django.db.models.expressions

Attachments (0)

Change History (1)

comment:1 Changed 3 years ago by jonash

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

Both work, but from django.db.models import F is the preferred way to import F as Django's internal module structure may change.

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.