gem/oq-platform — pull request #19 by matley (2012-11-12 13:00:31+00:00)
Title: Writable fault source

Addresses the issue of writing/deleting a fault source (and consequently faults, faultsections and traces).

Now a fault source can be edited (apart from computed fields) and deleted.

Implementation note: we have modified the foreign key constraint on the m2m relationship by adding "on delete cascade"

This pull request includes also some minor enhancements (scale and accuracy as computed fields, dropdown for fault_section field) and refactoring (the allowed choices of a field now live in models.js)