TireSwingSoftware/openassign-server — Issue #40: add ObjectManager.check_unique() method
Author: mhrivnak
Created: 2011-11-10 20:21:48+00:00
State: open

Certain CharField fields on our models must have unique values. We need an easy way for a client to know if a value is unique or not. I propose this:

ObjectManager.check_unique(auth_token, field_name, value)
# returns Bool

I think it's appropriate to authorize this check if the user has create permission for the object or update permission for the field.