title: Getting error by Django insert queries caused by duplicates
body: <p>I am trying to add some data into table made in Django.</p>
  
  <p>Here is my code:</p>
  
  <pre><code>class Prefixe(models.Model):
      remote_as = models.CharField(max_length=250)
      prefix_list = models.CharField(max_length=250, unique=True)
  
  
  def insert():
      p = Prefixe(remote_as='Apress', prefix_list='Berkeley')
      p.save()
  </code></pre>
  
  <p>I'm creating records using ORM and it fails with "duplicates" exception (see <code>unique</code> option in prefix_list definition).</p>
  
  <p>But there is a way I can avoid this exception if I make insert as raw SQL with specific PG option:</p>
  
  <pre><code>INSERT INTO "peer_table" ("remote_as","prefix_list")
  VALUES('{}','{}')
  ON CONFLICT DO NOTHING
  </code></pre>
  
  <p>Can I avoid this exception caused by duplicates when working via ORM?</p>