Fix for pull 1

ReverseUnique used in child models for relations pointing to parent
models can only be used when the child model's table contains the value
pointed to.
Replace occurences of attname by name.