title: How to solve the problem of type error in django?
body: <p>I am trying to make newsletter working but whenever I enter an email it gives me the following error.</p>
  
  <p><strong>Following error</strong></p>
  
  <pre><code>TypeError at /
  NewsletterUser() got an unexpected keyword argument 'newsletteremail'
  
  newsletteruser = NewsletterUser(newsletteremail=newsletteremail) 
  </code></pre>
  
  <p><strong>views.py</strong></p>
  
  <pre><code>def index(request):
      if request.method == 'POST':
          newsletteremail = request.POST.get('newsletteremail', '')
  
          newsletteruser = NewsletterUser(newsletteremail=newsletteremail)
  
          newsletteruser.save()
      return render(request, 'home/index.html')
  </code></pre>
  
  <p><strong>admin.py</strong></p>
  
  <pre><code>admin.site.register(NewsletterUser)
  </code></pre>
  
  <p><strong>models.py</strong></p>
  
  <pre><code>class NewsletterUser(models.Model):
      email = models.EmailField()
      date_added = models.DateTimeField(auto_now_add=True)
  
      def __str__(self):
          return self.email
  </code></pre>