title: How to have Django insert a sequence value into an Oracle table?
body: <p>How can I instruct Django to call <code>nextval</code> on a sequence for a given model's field?</p>
  
  <p>I realize that I can make a trigger in the DB:</p>
  
  <pre><code>CREATE TRIGGER foo_trg
  BEFORE INSERT ON foo FOR EACH ROW
  BEGIN
    SELECT foo_id_seq.NEXTVAL INTO :new.foo_id FROM dual;
  END;
  </code></pre>
  
  <p>However I'm curious if Django can do it via configuration like MySQL and autoincrement.</p>
  
  <p>I didn't see anything specified in the <a href="https://docs.djangoproject.com/en/1.7/ref/databases/#oracle-notes" rel="nofollow">Django Oracle notes</a>.</p>