Adding a new top-level trove via the admin UI causes Project Admin->Categorization to break.
The current admin also doesn't allow identical names in another (unrelated) trove -- add a field to override the auto-generated shortname, and improve shortname generation to allow for more friendly URLs.
kt/8182
AddTroveCategoryForm.display()has a few commented out linesredirect('/categories/{}/?categoryname={}&shortname={}'.format(upper.trove_cat_id, name, shortname))When using format stringsu'...'is needed. It is unfortunately not magical like%sstrings which upgrade to unicode automatically when the params are unicode.trovecategories.admin.*ini settings.Good feedback, commit pushed:
* Made period optional, along with general cleanup + tests
* Fixed
* Agred, changed
* Fixed
* Fixed by ensuring project model can accept those troves, rather than via config.
Last edit: Kenton Taylor 2018-02-02