This would support handling frontend searching for a dotpath in a project, and would help translators find a translaption in case they needed to update a specific translation. For this feature to be implemented end to end, another issue would be needed for the fontend to implement this search feature.
Requirements
dotpath string field on Translation model, which is automatically set when saving
This value would not be required by the serializer, it would be generated from the file_path and object_path.
Implement the DRF search functionality for that field
Possible Implementations
Probably overwrite the save method on the model to set the dotpath using generate_dotpath. Investigation in to Django docs needes
Description
This would support handling frontend searching for a dotpath in a project, and would help translators find a translaption in case they needed to update a specific translation. For this feature to be implemented end to end, another issue would be needed for the fontend to implement this search feature.
Requirements
dotpath
string field on Translation model, which is automatically set when savingfile_path
andobject_path
.Possible Implementations
generate_dotpath
. Investigation in to Django docs needes