Say I have imported something with fields unique_id and value.
How do I make it so that when I import the same unique_id again, the model will be updated in the database instead of giving a duplicate unique key error (because it tries to create a new one)?
Say I have imported something with fields unique_id and value.
How do I make it so that when I import the same unique_id again, the model will be updated in the database instead of giving a duplicate unique key error (because it tries to create a new one)?