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')

Best regards

-- 
Branko Majic
Jabber: [email protected]
Please use only Free formats when sending attachments to me.

Бранко Мајић
Џабер: [email protected]
Молим вас да додатке шаљете искључиво у слободним форматима.

Attachment: signature.asc
Description: PGP signature

Reply via email to