title: TypeError: 'class Meta' got invalid attribute(s): fields,model
body: <p>I am trying to show LDAP-attributes of a user by using the django-ldapdb library. First of all I made a new model:</p>
  
  <p>models.py</p>
  
  <pre><code>class LdapUser(ldapdb.models.Model):
      base_dn = u"CN=XXX,CN=Users,DC=domain,DC=com"
      object_classes = ['posixAccount', 'shadowAccount', 'inetOrgPerson']
  
      # inetOrgPerson
      phone = CharField(db_column='telephoneNumber', blank=True)
      mobile_phone = CharField(db_column='mobile', blank=True)
  </code></pre>
  
  <p>I want to display these in my webapp with forms.</p>
  
  <pre><code>class LdapUserForm(ldapdb.models.Model):
      class Meta:
         model = LdapUser
         fields = (
         'phone',
         'mobile_phone'
         )
  </code></pre>
  
  <p>I did all my migrations and but when I run my code it gives me the following error.</p>
  
  <blockquote>
    <p>raise TypeError("'class Meta' got invalid attribute(s): %s" %
    ','.join(meta_attrs.keys()))
    TypeError: 'class Meta' got invalid attribute(s): fields,model</p>
  </blockquote>
  
  <p>I looked it up but could not find anything helpful. So I hope someone on stacko has a solution for me.</p>
  
  <p>Thanks in advance</p>