Re: Transactions not working

2009-01-14 Thread Thomas Guettler
You need to test if the data is already in the db first. There is a handy method: model_object, created = YourModel.objects.get_or_create(...) If you still get this errors, you might want to check if your sequence is in sync: select max(id) from yourapp_yourmodel; select * from

Transactions not working

2009-01-14 Thread thomasbecht...@googlemail.com
Hi all, Problem: I want to use Transaction to save data to a postgresql-db. Error: IntegrityError: doppelter Schlüsselwert (double keyvalue) verletzt (harm) Unique-Constraint »measurements_loggerdata_logger_id_key« My Model looks like this: class LoggerData(models.Model): logger =