Chemical-Curation / chemcurator_django

Backend services for chemical curation
https://api.chemreg.epa.gov
MIT License
1 stars 0 forks source link

225 substance display preferred name #257

Closed scaduto closed 3 years ago

scaduto commented 4 years ago

Closes #225

If display_name is None or "", it will now default to the value of preferred_name.

Added tests to verify that a request can be performed with both cases above, and serializer and model tests that verify that substances can be created with no issues following the above constraints

Remove display_name from unique validation as well as unique_validation/substance creation tests as display_name no longer needs to be unique.

Added updated migration for current sprint