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

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