if i changed to following: 'docfset':docfset({'actor':request.user}, instance=tdoc), i got: ValidationError
On May 7, 10:21 am, victor <xur...@gmail.com> wrote: > docfset=inlineformset_factory(document, documentOnline, > form=documentOnlineForm, extra=1, can_delete=False) > c = RequestContext( > request, > { > > 'docfset':docfset(instance=tdoc,initial=[{'actor':request.user},]), > > 'documentform':documentForm(initial={'tSUser':getEDSByUObj(request.user, > []),'documentType':'Online','status':'Enabled'}), > } > ) > when runing,i got following errors: > __init__() got an unexpected keyword argument 'initial' > so,how to initial data for inlineformset?thanks. > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To post to this group, send email to django-us...@googlegroups.com. > To unsubscribe from this group, send email to > django-users+unsubscr...@googlegroups.com. > For more options, visit this group > athttp://groups.google.com/group/django-users?hl=en. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@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.