caktus/django-timepiece — pull request #655 by dpoirier (2013-03-15 19:06:16+00:00)
Title: Create Invoice creates two invoices if double clicked

If you double click Create Invoice on the create invoice page, it's possible to create two invoices. The first will contain all the hours, and the second will contain no hours. This should fail if no hours exist to get included in the invoice. A transaction might be necessary to prevent other race conditions as well if one isn't in use already.