On Sun, 2008-03-30 at 17:49 -0700, meppum wrote: > The easiest way to deal with this is to create a "version" column that > gets updated with the current version number of the row in the > database. Increment this column value each time a save is performed on > that row. Override the save method on the model you want to perform > this check on (in your example the poll model), and check on commit > check that the value of the "version" colum in the database is LESS > THEN the value of the "verson" column you are about to commit. If it > is not, then throw an error. and rollback the transaction.
Ehm, and how would you "check on commit"? -mark --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---