LCOGT / mop

Microlensing Observation Portal
GNU General Public License v3.0
0 stars 7 forks source link

Updating Target form requires all of the fields for Inteferometry evaluation #174

Closed KKruszynska closed 2 months ago

KKruszynska commented 2 months ago

When the User tries to update Target parameters using the form (Target page -> click on Update Target button), any changes to this form require filling out all of the targets for interferometry evaluation. This makes the manual update target option unavailable. This occurs probably due to a new Target Model.

rachel3834 commented 2 months ago

Yes, this issue was caused by the new custom parameters of our Target model not being configured to allow null or blank entries. Most of them are set with default values, but not all. The specification of these parameters in the models.py is used by Django to determine what validation should be performed on the update form, so it was requiring entries for these parameters.

I've edited the model definition to allow parameters to be blank if they are not pre-set with a default.