If I've understood you correctly, It sounds like you are proposing the
same thing as:
http://code.djangoproject.com/ticket/5420
Yours,
Russ Magee %-)
However, one of the benefits of values() returning a dict is that you
avoid the more expensive model instance creation when you don't need it.
So I lean more towards something like #5420 rather than changing what
values() returns.
And, if you would rather be explicit in the positive tone, then maybe a
show() method to complement the hide() would satisfy you.
Gary
Sorry, for some reason I completely skipped over the type switching in
the values() call. I do agree that it would be better than having
separate methods for each.
I wonder if we would also need to support the people who want to exclude
fields:
Model.objects.values('field1', 'field2', exclude_fields=[...], type=...)
Has a discussion of something like the "type" keyword argument been
brought up before? The only two threads [1][2] I found about
valuelist() and value_list() don't mention the idea.
Gary
[1]
http://groups.google.com/group/django-developers/browse_frm/thread/22b44f4eafaf956a/
[2]
http://groups.google.com/group/django-developers/browse_frm/thread/4c7ba291577e6e73/