title: AttributeError: type object ... has no attribute 'objects'
body: <p>fragment of models.py</p>
  
  <pre><code>class Hardware_type(models.Model):
      type = models.CharField(blank = False, max_length = 50, verbose_name="Type")
      description = models.TextField(blank = True, verbose_name="Description")
      slug = models.SlugField(unique = True, max_length = 255, verbose_name = "Slug")
  
  class Software_type(models.Model):
      type = models.CharField(blank = False, max_length = 50, verbose_name="Type")
      description = models.TextField(blank = True, verbose_name="Description")
      slug = models.SlugField(unique = True, max_length = 255, verbose_name = "Slug")
  </code></pre>
  
  <p>and now </p>
  
  <pre><code>&gt;&gt;&gt; sw = Software_type.objects.get(slug='unix')
  &gt;&gt;&gt; sw
  &lt;Software_type: Unix&gt;
  &gt;&gt;&gt; hw = Hardware_type.objects.get(slug='printer')
  Traceback (most recent call last):
    File "&lt;console&gt;", line 1, in &lt;module&gt;
  AttributeError: type object 'Hardware_type' has no attribute 'objects'
  </code></pre>
  
  <p>I can't see why this happens. Anyone can help me?</p>
  
  <p>Edit:</p>
  
  <p>sorry that did not sent all the code - <strong>problem solved.</strong>
  in another class I had</p>
  
  <pre><code>hardware_type = models.ManyToManyField(Hardware_type, verbose_name="Hardware Type")
  </code></pre>
  
  <p>after change from hardware_type to hw_type - works fine 
  I did not know that can cause this problem.</p>