Malcolm, You make a good point. here is the working code:
search_results = catalogs.get_values(fields=['artist'], order_by=['artist'], artist__icontains=form["searchquery"], distinct=True) I forgot to specify the distinct field that I wanted to return (fields=['artist']). Simple mistake. However, I still can't figure out how get_count() works. Here is the code that should return the count of the query above: catalogs.get_count(fields=['artist'], artist__icontains=form["searchquery"], distinct=True) I get this error: "unexpected keyword argument 'fields'" --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users -~----------~----~----~----~------~----~------~--~---