> I am trying to construct a simplest example to see the djblets data grid in
> action
>
> def test(request):
> countries = [ {'name': 'Australia', 'population': 21, 'tz': 'UTC +10',
> 'visits': 1},
> {'name': 'Germany', 'population': 81, 'tz': 'UTC +1',
> 'visits': 2},
> {'name': 'Mexico', 'population': 107, 'tz': 'UTC -6',
> 'visits': 0},]
>
> //How can i incorporate the dictionary object to the datagrid??
You're making a list of dictionaries ...which is not the same as a
Model object that djiblets datagrid wants.
> How can i display the contents of dictionary in the djblets datagrid ??
>
> My question is how can i display the dictionary object in the dblets
> datagrid??
I would say make a model, create a queryset object and pass it to
djiblets. Disclaimer: I didn't dig in djiblets beyond getting it to
work with models; it still may be possible to do what you want.
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en.