#18657: Inconsistent db names in example
-------------------------------+--------------------
     Reporter:  msb@…          |      Owner:  nobody
         Type:  Uncategorized  |     Status:  new
    Component:  Documentation  |    Version:  1.4
     Severity:  Normal         |   Keywords:
 Triage Stage:  Unreviewed     |  Has patch:  0
Easy pickings:  0              |      UI/UX:  0
-------------------------------+--------------------
 https://docs.djangoproject.com/en/1.4/topics/db/multi-db/

 In the example, the names 'other' and 'credentials' are both used for a
 single database.  It would make more sense if it stuck to just one name.

 Correct this text:

 {{{
 With this setup installed, lets run some Django code:

 >>> # This retrieval will be performed on the 'credentials' database
 >>> fred = User.objects.get(username='fred')
 >>> fred.first_name = 'Frederick'

 >>> # This save will also be directed to 'credentials'
 >>> fred.save()
 }}}

 to this:

 {{{
 With this setup installed, and assuming User is a model in myapp, lets run
 some Django code:

 >>> # This retrieval will be performed on the 'other' database
 >>> fred = User.objects.get(username='fred')
 >>> fred.first_name = 'Frederick'

 >>> # This save will also be directed to 'other'
 >>> fred.save()
 }}}

-- 
Ticket URL: <https://code.djangoproject.com/ticket/18657>
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.


Reply via email to