title: AttributeError: 'list' object has no attribute 'objects'
body: <p>I am trying to run the following which is throwing an </p>
  
  <blockquote>
    <p>AttributeError: 'list' object has no attribute 'objects'</p>
  </blockquote>
  
  <p><strong>script.py</strong></p>
  
  <pre><code>#Get Dota2 Item Rarities
  dotaItemRarityUrl = 'http://api.steampowered.com/IEconDOTA2_570/GetRarities/v1?'
  dotaItemRarityPayload = {'key': settings.SOCIAL_AUTH_STEAM_API_KEY,
                      'language': 'en',
                      }
  dotaItemRarityInfo = requests.get(dotaItemRarityUrl, params=dotaItemRarityPayload)
  dotaItemRarity = dotaItemRarityInfo.json()
  dotaItemRarity = dotaItemRarity['result']['rarities']
  print(dotaItemRarity)
  #print(dotaItemQualities)
  
  #Populate Database With Item Rarities that do NOT exist already
  for rarity in dotaItemRarity:
      print rarity
      irarityId = rarity['id']
      irarityProperName = rarity['localized_name']
      irarityInternalName = rarity['name']
      irarityColor = rarity['color']
  
      q = dotaItemRarity.objects.filter(rarityId=irarityId)
      print q
  
      if len(q) == 0:
          newRarity = dotaItemRarity(rarityId=irarityId,
                                     rarityProperName=irarityProperName,
                                     rarityInternalName=irarityInternalName,
                                     rarityColor=irarityColor)
          newRarity.save()
  </code></pre>
  
  <p><strong>models.py</strong></p>
  
  <pre><code>class dotaItemRarity(models.Model):
      rarityId = models.IntegerField(max_length=3,primary_key=True)
      rarityProperName = models.CharField(max_length=60)
      rarityInternalName = models.CharField(max_length=50)
      rarityColor = models.CharField(max_length=30)
  
      def __unicode__(self):
          return self.rarityInternalName
  </code></pre>
  
  <p>I am using south to handle migrations and have tried multiple options to fix this e.g. removing the tables and rebuilt them. As far as I can tell this should work, can anyone point me in the right direction.</p>