changed forms.models.get_declared_fields to get_declared_fields to make it work for 1.7