uscbp / bodb

Brain Operation DataBase (BODB)
0 stars 0 forks source link

Lock entries that are being edited so they can't be edited by other users at the same time #111

Open jbonaiuto opened 9 years ago

jbonaiuto commented 9 years ago

Can make a lock flag that is set on calling the edit view and unset on save. Issue: what if the user doesn't save (i.e. hits cancel or navigates away from the edit page)? Need to make the lock expire after a given time. What if the user is still editing when it expires? Need to notify them and make them reload the edit page? What about their unsaved changes?

https://github.com/RobCombs/django-locking https://github.com/saxix/django-concurrency