title: Django: Adding a ManyToMany field that can have alternated values posted to it
body: <p>I am attempting to create a model where an unspecified number of <em>characteristics</em> can be added to a model field with each <em>characteristic</em> having a value assigned to it that is user defined.</p>
  
  <p>My attempt:</p>
  
  <pre><code>class Characteristic(models.Model):
      name = models.CharField(max_length = 50)
      value = models.FloatField()
  
  class Object(models.Model):
      name = models.CharField(max_length = 50)
      chars_added = models.ManyToManyField(Characteristic, null=True, blank=True)
  </code></pre>
  
  <p>This allows me to add any number of <em>characteristics</em> but it does not let me assign a number that is unique to the <em>Object</em> class that is created.  I realize that creating a separate Model class may not be the best approach but it is as close to what I need to create.</p>
  
  <p>ANSWER FOUND: 
  <a href="https://docs.djangoproject.com/en/1.6/topics/db/models/#intermediary-manytomany" rel="nofollow">https://docs.djangoproject.com/en/1.6/topics/db/models/#intermediary-manytomany</a></p>
  
  <pre><code>class Characteristic(models.Model):
      name = models.CharField(max_length = 50)
  
  class Object(models.Model):
      name = models.CharField(max_length = 50)
      chars_added = models.ManyToManyField(Characteristic,through= 'Value')
  
  class Value(models.Model):
      characteristic = models.ForeignKey(Characteristic)
      object = models.ForeignKey(Object)
      value = models.FloatField()
  </code></pre>
  
  <p>I believe I have been clear, but please feel free to ask any questions you may have in order to clarify the question.</p>