title: Django: How to create form with ForeignKey field (input as CharField)
body: <p>I have created two models Article and Author as this:</p>
  
  <p><strong>model.py</strong></p>
  
  <pre><code>class Article(models.Model):
      title = models.CharField(max_length=200)
      content = models.TextField(max_length = 5000)
      author = models.ForeignKey('Author', on_delete=models.CASCADE)
  
  class Author(models.Model):
      author_name = models.CharField(max_length=200)
      author_intro = models.TextField(max_length = 3000)
  </code></pre>
  
  <p>And I am trying to create a form that lets user input Article information *(including title, content, author only). So that whenever user input an author, that input data is stored in both <code>author</code> (in Article model) and <code>author_name</code> (in Author model). Is this possible to do? I can not seem to get it working. Here's what I tried:</p>
  
  <p><strong>form.py:</strong></p>
  
  <pre><code>class articleForm(forms.ModelForm):
  
      author = forms.ModelMultipleChoiceField(queryset=Author.objects.all())
  
      class Meta:
          model = Article
          fields = ['title']          
          widgets = {
          'content': forms.Textarea(attrs={'cols': 75, 'rows': 50})}
  
  
  class authorForm(forms.ModelForm):
      class Meta:
          model = Author
          fields = ['author_name']
  </code></pre>
  
  <p><strong>views.py:</strong></p>
  
  <pre><code>def compose_article(request):
  
      form_article = articleForm(request.POST or None)
      if form_article.is_valid():
          instance = form_article.save(commit=False)
          instance.save()
  
      context = {
          "ArtileForm":form_article,
      }
      return render(request,"Upload.html",context)
  </code></pre>
  
  <p>Thanks in advance!</p>