giving attributes in a dictionary in django forms code example Example: initial form form = MyForm(initial={'name': 'Peter'})