Optimistic lock implementation for Django. Prevents users from doing concurrent editing.