USGS-WiM / stnservices-django

Other
0 stars 0 forks source link

Add cascade delete to HWMs #2

Open lprivette opened 2 years ago

lprivette commented 2 years ago

When a peak is created a HWM or Data File is required for use in interpretation of the peak. In other words when you create a peak in STN you have to select a HWM or Data file to associated with it. You may select more than one data source to associate with the PEAK

Currently you can delete a HWM and the PEAK will still exist (with the hwm interpretation blank).

Need to discuss whether the associated Peak should be deleted if a HWM is deleted, and take into account that you can select multiple sources for a peak.

This also relates to a larger effort regarding PEAKS: effort https://github.com/orgs/USGS-WiM/projects/9

aaronstephenson commented 2 years ago

Cascade delete in Django: https://github.com/USGS-WiM/stnservices-django/issues/1#issuecomment-1051103400