I'd suggest reading the tests for django.forms, and then reading the source code. From there, one can then dive into other sections of django.