title: Django Models - 'Pcaps.uuid' must set unique=True because it is referenced by a foreign key
body: <p>In essence I am trying to create a few tables that are populated with attributes of pcaps. I am receiving quite an odd error. This is the code in the models class:</p>
  
  <pre><code>class Pcaps(models.Model):
       uuid = models.CharField(max_length=50)
       filename = models.CharField(max_length=200, default='')
       datetime = models.DateTimeField(default=datetime.now, blank=True)
       filehash = models.ForeignKey(Malwares, to_field="filehash", 
   db_column="filehash")
  
  class PcapsIps(models.Model):
      domainname = models.CharField(max_length=100)
      ip = models.CharField(max_length=100)
      uuid = models.ForeignKey(Pcaps, to_field="uuid", db_column="uuid")
  
  class PcapsPorts(models.Model):
     number = models.CharField(max_length=100)
     uuid = models.ForeignKey(Pcaps, to_field="uuid", db_column="uuid")
  </code></pre>
  
  <p>The error in question is as follows:</p>
  
  <p>ERRORS:</p>
  
  <pre><code>analyser.PcapsIps.uuid: (fields.E311) 'Pcaps.uuid' must set unique=True 
  because it is referenced by a foreign key.
  analyser.PcapsPorts.uuid: (fields.E311) 'Pcaps.uuid' must set unique=True because it is referenced by a foreign key.
  </code></pre>