On Wed, Mar 20, 2013 at 6:56 AM, Branko Majic <bra...@majic.rs> wrote: > On Wed, 20 Mar 2013 06:48:26 -0600 > Larry Martell <larry.mart...@gmail.com> wrote: > >> karlfs = Klarf.objects.filter(dr4i_id=dr4i.id).order_by(defect__name) >> >> But I'm getting NameError: "global name 'defect__name' is not defined" > > You forgot to quote defect__name. I.e. > > karlfs = Klarf.objects.filter(dr4i_id=dr4i.id).order_by('defect__name')
ARRRGH! Thank you so much! -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at http://groups.google.com/group/django-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.