title: After updating table id via csv file when trying to add new field getting - duplicate key value violates unique constraint
body: <p>Problem.
  After successful data migration from csv files to django /Postgres application .</p>
  
  <p>When I try to add a new record via the application interface   getting - duplicate key value violates unique constraint.(Since i had id's in my csv files -i use them as keys )</p>
  
  <p>Basically the app try to generate id's that  already  migrated.
  After each attempt ID increments by one so if I have 160 record I have to get this error 160 times and then when I try 160 times  the time 161   record  saves ok.</p>
  
  <p>Any ideas how to solve it?</p>