#20393: django.db.models.query.QuerySet.__repr__ should not have side-effects
-------------------------------------+-------------------------------------
     Reporter:  justin@…             |                    Owner:  nobody
         Type:  Uncategorized        |                   Status:  new
    Component:  Database layer       |                  Version:  1.4
  (models, ORM)                      |               Resolution:
     Severity:  Normal               |             Triage Stage:
     Keywords:  QuerySet, repr,      |  Unreviewed
  side-effect                        |      Needs documentation:  0
    Has patch:  1                    |  Patch needs improvement:  0
  Needs tests:  0                    |                    UI/UX:  0
Easy pickings:  0                    |
-------------------------------------+-------------------------------------

Comment (by lukeplant):

 The reason for the current behaviour is to help interactive coding and
 learning of Django - if you type an expression that returns a `QuerySet`,
 you get something helpful. See the tutorial for example:

 https://docs.djangoproject.com/en/1.5/intro/tutorial01/

 This would have to be considered when weighing up this ticket - a lot of
 Django tutorials (our own and others) would need significant modification,
 and the habits of people used to the current behaviour.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/20393#comment:3>
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 unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to