I have a ModelForm as follows:
class ArticleForm(forms.ModelForm):
title = forms.CharField(max_length=200)
body = forms.CharField(widget=forms.Textarea)
new_status = forms.CharField(label="Status", max_length=1, widget=forms.Select(choices=APPS_ARTICLE_STATUS))
tags = forms.CharField(label="Generic Tags", max_length=200, widget=forms.TextInput(attrs={'size':'40'}))
class Meta:
model = Article
fields = ['title', 'body']
Of this title, body and new status load directly from the Article model. I want to populate the tags field manually. How do I go about doing this?
Thanks in advance.