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
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
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
3 matches
Mail list logo