title: Django Admin - Multiple Inlines
body: <p>Having a bit of trouble using multiple inlines within my admin console over 3 models which im playing around with.</p>
  
  <p>Models:</p>
  
  <pre><code>class carManufacturer(models.Model):
      name = models.CharField(max_length=200)
      country = models.CharField(max_length=200)
      description = models.CharField(max_length=1000)
  
      def __unicode__(self):
          return self.name
  
  
  class vehicleModel(models.Model):
      carManufacturer = models.ForeignKey(carManufacturer)
      model = models.CharField(max_length=200)
  
      def __unicode__(self):
          return self.model
  
  class vehicleCode(models.Model):
      vehicleModel = models.ForeignKey(vehicleModel)
      variantCode = models.CharField(max_length=200) 
      variantBadge = models.CharField(max_length=200)
      manuStart = models.DateTimeField('Manufacture Start Date')
      manuFin = models.DateTimeField('Manufacture End Date')
  
      def __unicode__(self):
          return self.variantCode
  </code></pre>
  
  <p>What I'm looking to do is when I add a car Manufacturer I can add car Models via my inline, and when I am editing models, I can edit vehicle codes/variants via another inline.</p>
  
  <p>I have an admin.py file I am using:</p>
  
  <pre><code>from Cars.models import carManufacturer, vehicleModel, vehicleCode
  from django.contrib import admin
  
  class modelInline(admin.TabularInline):
      model = vehicleModel
      extra = 0
  
  class codeInline(admin.TabularInline):
      variantCode = vehicleCode
      extra = 0
  
  
  class CarAdmin(admin.ModelAdmin):
      fields = ['name',  'description', 'country']
      inlines = [modelInline]
  
  class VehicleModelAdmin(admin.ModelAdmin):
      fields = ['carManufacturer','model']
      #inlines = [codeInline]
  
  
  admin.site.register(carManufacturer, CarAdmin)
  admin.site.register(vehicleModel, VehicleModelAdmin)
  </code></pre>
  
  <p>As soon as I uncomment my second inline which uses the same method as the first I get the following error:</p>
  
  <blockquote>
    <p>'model' is a required attribute of 'VehicleModelAdmin.inlines[0]'.</p>
  </blockquote>
  
  <p>I am struggling to understand what I am doing wrong, especially since I have got the first inline working, any input would be much appreciated</p>