Brown-University-Library / ttwr

This is the django app that runs the Theater That Was Rome project website.
1 stars 5 forks source link

constraints on people data entry: roles #152

Closed emylonas closed 8 years ago

emylonas commented 8 years ago

Multiple roles have to be separated by ; (semi colon) people repeatedly put in , (comma) this results in a role such as "author, editor" which is treated as one string.

On save, either automatically change comma to semi-colon, or flag as an error and don't save.

lucyvk commented 8 years ago

https://docs.djangoproject.com/en/1.9/ref/contrib/admin/ http://www.ilian.io/django-models-foreignkey-and-custom-admin-filters/

lucyvk commented 8 years ago

Doing a string replace of commas for semi-colons for now, pushed to my local fork