I am trying to construct a simplest example to see the djblets data grid in
action

suppose everything is in my view.py

views.py
-------------
class UserDataGrid(DataGrid):
    username = Column("Country Name", sortable=True)
    first_name = Column("Population", sortable=True)
    last_name = Column("Timezone", sortable=True)

and the main function that gets called is

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??
     return render_to_response('test.html', {'table': countries})


test.html
-------------
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??

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to