TOMToolkit / tom_base

The base Django project for a Target and Observation Manager
https://tom-toolkit.readthedocs.io
GNU General Public License v3.0
26 stars 45 forks source link

851 extending target model #885

Closed jchate6 closed 3 months ago

jchate6 commented 6 months ago

This is a decent sized refactor to give a user the ability to create their own Target Model. The original Target model has been replaced by a BaseTarget model and moved into a new file called base_models.py. The Target model is then set to be the same as BaseTarget unless a different user model is specified.

Docs have been added to explain how a user can extend their target model.

jchate6 commented 5 months ago

I broke these tests with the Django restframes update that just got merged in from Dev...

rachel3834 commented 3 months ago

Alpha testing v2.19.0a2 and migrating the MOP TOM system over to use these extended Target models is now complete. Overall the conversion process went very smoothly. In the process I also made extensive use of the new cone search feature to check for duplicated Targets. This was a much more involved process due to MOP-specific data, but that is also now complete, and I think we can accept this story.