Fixed #3679 -- UUID Validation by benred42 · Pull Request #3687 · encode/django-rest-framework (original) (raw)

Fixed #3679

Added validation to UUIDField to properly catch invalid input types (lists, tuples, etc).
Also added a new invalid input to UUIDField test. Not sure I'm entirely happy with
the patch as it currently is, since it seems to have some unnecessary redundancy
but I figured I go ahead and push it up now since it does work. Comments and
suggestions are appreciated.