class createarticleform(forms.ModelForm):
class Meta:
model=models.Article.
fields =(‘title’,‘content’,)
if i use fields=’’“all” i am not able to save articles.
if i use fields =(‘title’,‘content’,) i am able to save articles but cannot set author from the form page.
how to display and select the “author”(many to many field in Article model) when creating a article in the model form