title: TypeError: super(type, obj): obj must be an instance or subtype of type?
body: <p>Why am I getting this error?</p>
  
  <pre><code>TypeError: super(type, obj): obj must be an instance or subtype of type
  </code></pre>
  
  <p>This is my models.py file </p>
  
  <pre><code>class UserNotification(models.Model):
  Name = models.CharField(max_length=250)
  Mobile_No = models.CharField(max_length=10, validators=[RegexValidator(r'^\d{1,10}$')])
  Proof = models.TextField()
  viewed = models.BooleanField(default=False)
  user = models.ForeignKey(User)
  date = models.DateTimeField(default=timezone.now)
  
  def __str__(self):
      return self.Name
  
  class Meta:
      ordering = ["-date"]
  </code></pre>
  
  <p>This is my views.py file</p>
  
  <pre><code>class RequestItem(generic.CreateView):
      model = UserNotification
      fields = ['Name', 'Mobile_No', 'Proof']
  
      def get_form(self, form_class=None):
          if form_class is None:
              form_class = self.get_form_class()
          form = super(UserNotification, self).get_form(form_class)
          form.fields['Name'].widget = TextInput(attrs={'placeholder': '*Enter your name'})
          form.fields['Mobile_No'].widget = TextInput(
              attrs={'placeholder': "*Enter your's mobile number to get a call back from angel"})
          form.fields['Proof'].widget = TextInput(attrs={'placeholder': '*enter proof you have for your lost item'})
          return form
  
      def form_valid(self, form):
          print(self.kwargs)
  
          self.object = form.save(commit=False)
          qs = Report_item.objects.filter(id=self.kwargs.get("pk"))
          self.object.user = qs[0].owner
          self.object.save()
          return HttpResponse("&lt;h1&gt;Your request has been processed&lt;/h1&gt;")
  </code></pre>
  
  <p>I am using django 1.11. There was no error and code working properly until I add the placeholder function. After adding the placeholder I am getting this error. Please help me to resolve it.</p>