On Fri, Oct 11, 2019 at 9:29 PM Matt <m...@satchamo.com> wrote:

> I think it should just show <QuerySet> instead of <QuerySet []>.
>

I agree, I think this makes the most sense.

I think it can be argued that QuerySet should be consistent with [RawQuerySet,
> which just uses a string of the query in the repr]
>

I can see the argument I suppose, but I think most of the time that's just
noise. When you want to see that, you'll say you want to see that by
getting the repr of the query itself. It seems like too much for a default
repr for QuerySet, IMO.

>
> Regarding other things that have been mentioned: I'm not too keen about
> introducing a setting for this behavior, or doing things differently in an
> interactive console. Django already has a lot of settings, and this seems
> like such a minor thing. And I don't know of any precedent for changing the
> behavior of Django in an interactive shell (and you can tell I'm not a fan
> of inconsistent behaviors).
>

Me either, and I'm one that mentioned it. I personally have no misgivings
about changing the repr unconditionally, and it would be my preference. I
was trying to consider potential dissent to give balanced feedback.

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers  (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-developers+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-developers/CABpHFHTF0%2BNHWhtdhziqtsKPeJo1nih77WMt%3DzY4kM0j%3DGTcSg%40mail.gmail.com.
  • ... Matt
    • ... Ryan Hiebert
      • ... Adam Johnson
    • ... Matt
      • ... Ryan Hiebert
    • ... Matt
    • ... Mariusz Felisiak
      • ... Carlton Gibson
        • ... 'Alexandr Aktsipetrov' via Django developers (Contributions to Django itself)
        • ... James Bennett

Reply via email to