On Aug 15, 2011 3:02 PM, "Asif Jamadar" <[email protected]> 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'"
>
>
>
> any suggestions?
>

dict attribute access in python goes like this..

c['company_name ']

/jeff
- from a handheld device.
_______________________________________________
> BangPypers mailing list
> [email protected]
> http://mail.python.org/mailman/listinfo/bangpypers
_______________________________________________
BangPypers mailing list
[email protected]
http://mail.python.org/mailman/listinfo/bangpypers

Reply via email to