On Wed, Mar 20, 2013 at 6:56 AM, Branko Majic wrote:
> On Wed, 20 Mar 2013 06:48:26 -0600
> Larry Martell 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__
On Wed, 20 Mar 2013 06:48:26 -0600
Larry Martell 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
2 matches
Mail list logo