Return to Snippet

Revision: 3402
at July 19, 2007 14:18 by sethbuntin


Initial Code
def form_data(form, queryset):
    for field in form.base_fields.keys():
            data[field] = getattr(queryset, field)
    return data

data = form_data(YourForm, queryset)

Initial URL

                                

Initial Description

                                

Initial Title
Change Django Queryset to Dictionary

Initial Tags

                                

Initial Language
Python