Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class BooleanField(models.BooleanField):
- def get_prep_value(self, value):
- if value is None:
- return None
- return super(BooleanField, self).to_python(value)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement