Re: question on ModelMultipleChoiceField

2008-04-07 Thread Mackenzie Kearl
you should use PostForm(instance=post) --~--~-~--~~~---~--~~ 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 ema

Re: question on ModelMultipleChoiceField

2008-03-31 Thread Iamnewbie
I forgot attaching my related codes in views: if id is None: form = PostForm() else: post = get_object_or_404(Post, pk=id) form = PostForm(post.__dict__) I'd appreciated any help. Thanks. --~--~-~--~~~---~--~~ You rece

question on ModelMultipleChoiceField

2008-03-31 Thread Iamnewbie
I have codes as follows: tags=forms.ModelMultipleChoiceField(queryset=Tags.objects.all(), widget=forms.CheckboxSelectMultiple) It is working for showing an empty form to the user to enter data. however, when I want to show an existing data (that stored in database) to the user to edit, the Check