BHTOM-Team / bhtom2

7 stars 2 forks source link

Target is saved before Submit when using Harvesters #53

Closed wyrzykow closed 1 year ago

wyrzykow commented 1 year ago

TNS or Gaia Alerts harvesters (Catalog Search) search for target using the names entered and fill the create target form. If the target existed before, only at Submit we find out about this and we are not allowed to save it. The target is being saved already after Harvester run, but I cannot identify why (probably hooks.py are being run after harvesters), but that is wrong, as they should be save only after Submit on the create page.

wyrzykow commented 1 year ago

Checked it twice and the problem does not exist anymore.