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: trp IDs #153

Closed emylonas closed 8 years ago

emylonas commented 8 years ago

we have three problems:

  1. people typing in duplicate IDs
  2. people typing in IDs in wrong format ( not \d{4} with leading 0)
  3. People typing in the same person twice, with new ID.

It would be good to check for the first two,

  1. check for duplicate IDs or auto assign the trp ID by checking for the highest number (not the number of entries, in case of deletion).

I'm not sure we can do much about the third one, other than make sure no one changes the trp ID without doing some checking first. That may be documentation.

lucyvk commented 8 years ago