Hi. You should take a read on the queryset api, that would help you a lot In the furture. For distinct values add .distinct() so you fx get ...filter(...).distinct()
~Jakob On Jun 11, 7:28 pm, Bobby Roberts <tchend...@gmail.com> wrote: > > The issue is the line: WebPage.objects.filter(page_plaque!=''). The > > queryset syntax doens't use the != operator anywhere. To do != operations > > you need to instead do WebPage.objects.exclude(page_plaque=''). > > ok that got past the error but there are dupes in there. Is there a > way to pull a distinct list? ideally i'd like it to return something > like this > > <select> > <option value="pic1.jpg">pic1.jpg</option> > <option value="pic2.jpg>pic2.jpg</option> > </select> > > right now that returns this > <select> > <option value="1">pic1.jpg</option> > <option value="8">pic1.jpg</option> > <option value="3">pic2.jpg</option> > </select> > > where the option value is the ID of the record from the table. --~--~---------~--~----~------------~-------~--~----~ 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 django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---