On Wed, Mar 20, 2013 at 6:56 AM, Branko Majic <[email protected]> wrote:
> On Wed, 20 Mar 2013 06:48:26 -0600
> Larry Martell <[email protected]> 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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to