Re: How to stop the increment of Primary Key field when an trasaction fails.

2022-04-24 Thread 'Adam Johnson' via Django developers (Contributions to Django itself)
Hi! I'm going to answer your question, but please read the below as well about where to ask questions in future. You can't stop ID's being consumed during a transaction - databases do this by default to avoid any potential confusion between "versions" of objects with the same ID. But if you absol

How to stop the increment of Primary Key field when an trasaction fails.

2022-04-24 Thread Satyabrata Sbr
How can i stop auto increment of primary key field of a model when some exception occurs inside transaction.atomic()? -- You received this message because you are subscribed to the Google Groups "Django developers (Contributions to Django itself)" group. To unsubscribe from this group and stop