Fix Django 1.3.X request issue
Added function to validate an object based on its fields