Closed Bug 848440 Opened 11 years ago Closed 11 years ago

[traceback] 500 Error: AttributeError: 'list' object has no attribute 'values_list'

Categories

(Participation Infrastructure :: Phonebook, defect)

defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: mbrandt, Assigned: giorgos)

References

()

Details

(Whiteboard: [trackback])

Reproducible on dev/stage/prod

Steps to reproduce:
1. goto http://mozillians.org/en-US/groups/search

===========================================

Traceback (most recent call last):

  File "/data/www/mozillians.org/mozillians/vendor/src/django/django/core/handlers/base.py", line 111, in get_response
    response = callback(request, *callback_args, **callback_kwargs)

  File "/data/www/mozillians.org/mozillians/vendor/src/django/django/contrib/auth/decorators.py", line 20, in _wrapped_view
    return view_func(request, *args, **kwargs)

  File "/data/www/mozillians.org/mozillians/vendor/src/django/django/views/decorators/cache.py", line 75, in _cache_controlled
    response = viewfunc(request, *args, **kw)

  File "/data/www/mozillians.org/mozillians/apps/groups/views.py", line 46, in search
    .get('term')).values_list('name', flat=True))

AttributeError: 'list' object has no attribute 'values_list'
This was fixed in commit

https://github.com/mozilla/mozillians/commit/437864387a441d80f33e356ff9512b552ad6cce2
Assignee: nobody → giorgos
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
QA verified - Nice, many thanks :giorgos!

http://mozillians.org/en-US/groups/search does not produce a 500 error.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.