Added the sanitized_name field to the unit org models (Organization, Division, College and Department). The value of this field is calculated during the the sanitize-unit-names management command.
Added the sanitize-unit-names management command 😄 This uses logic created for the map-units command written by @cjg89 to sanitize the various unit names into more human readable names. In addition, by default it will attempt to string match the sanitized_name values to certain values across other apps, specifically programs_college and programs_department right now. If a match is found, an association is made via a FK from the programs model back to the unit model.
Enhancements:
sanitized_name
field to the unit org models (Organization
,Division
,College
andDepartment
). The value of this field is calculated during the thesanitize-unit-names
management command.sanitize-unit-names
management command 😄 This uses logic created for themap-units
command written by @cjg89 to sanitize the various unit names into more human readable names. In addition, by default it will attempt to string match thesanitized_name
values to certain values across other apps, specificallyprograms_college
andprograms_department
right now. If a match is found, an association is made via a FK from the programs model back to the unit model.