hagsteel / swampdragon

swampdragon
Other
557 stars 74 forks source link

How to avoid 'false' SwampDragon messages #206

Open jpuntomarcos opened 8 years ago

jpuntomarcos commented 8 years ago

Hi,

Imagine this example in Django ORM: myStudent.delete()

If the delete action violated a foreign key constraint, Django will generate an exception (which is correct) but SwampDragon will estimate that the object has been deleted and it will send a false "Object deleted" message to the client that is listening to the channel.

It is not happening when I modify a field and then call myStudent.save(), only happening with delete errors.

Any way to avoid this?

Thanks in advance!