[BangPypers] 'dict' object has no attribute 'company_name'

Ramdas S ramdaz at gmail.com
Mon Aug 15 11:33:44 CEST 2011


On Mon, Aug 15, 2011 at 3:00 PM, Asif Jamadar <asif.jamadar at rezayat.net>wrote:

> charges = [(c.company_name)
>
>                 for c in
> ReportModel.objects.values('company_name').distinct()]
>
>
> but it throws this error: " 'dict' object has no attribute 'company_name'"
>
>
> paste the whole code somewhere may be dpaste.com and ask the question

>
> any suggestions?
> _______________________________________________
> BangPypers mailing list
> BangPypers at python.org
> http://mail.python.org/mailman/listinfo/bangpypers
>



-- 
Ramdas S
+91 9342 583 065


More information about the BangPypers mailing list