Re: 'ValuesListQuerySet' object has no attribute 'META'

2011-06-10 Thread javatina
You are absolutely correct. I certainly need to improve my Python skills, think more Python and get rid of some old habits. Another lesson - I could easily find the problem myself if I trusted more myself instead of sending tracebacks asking for help. So, I guess double thanks are in order. Serge

Re: 'ValuesListQuerySet' object has no attribute 'META'

2011-06-10 Thread Ian Clelland
On Fri, Jun 10, 2011 at 5:55 AM, javatina wrote: > > = in views.py: === > see formatted http://dpaste.com/hold/552703/ > > same as: > > def test(request, slug=None): >slugs = Concept.objects.filter(status__slug = 'active').order_by('- > published_on').values_list('slug', flat=True) >

Re: 'ValuesListQuerySet' object has no attribute 'META'

2011-06-10 Thread javatina
> What are you doing with the list once you generate it? Are you just running > that single line of code, for instance, in a Python shell, or is this error > generated in a view? Attempt to "cast" QuerySet to list appeared during my experimentation with Python/Django to see what I can do with both

Re: 'ValuesListQuerySet' object has no attribute 'META'

2011-06-09 Thread Ian Clelland
QuerySet is a subclass of QuerySet I can do > list(concept_ids) - see > > https://docs.djangoproject.com/en/dev/ref/models/querysets/#when-querysets-are-evaluated > > However, I am getting on this line > 'ValuesListQuerySet' object has no attribute 'META' error. >

'ValuesListQuerySet' object has no attribute 'META'

2011-06-09 Thread javatina
see https://docs.djangoproject.com/en/dev/ref/models/querysets/#when-querysets-are-evaluated However, I am getting on this line 'ValuesListQuerySet' object has no attribute 'META' error. For the sake of experimentation, if I try concept_ids = list(Concept.objects.all()) I am getting