Sorry I'm tired. Got it ! collection = MediaCollection.objects.get(public_id=public_id) form = MediaCollectionForm(instance=collection)
2011/2/18 YomGuy <yomguyparis...@gmail.com> > Hi ! > > I need to get initial data in a form. > Do I have to use a formset or is there any method to fill a form coming > from a model item with existing data ? > > Thank for help > G > > -- 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.