Changes between Initial Version and Version 1 of Ticket #31049
- Timestamp:
- Dec 1, 2019, 1:23:09 AM (5 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #31049 – Description
initial v1 17 17 def validate(self, value): 18 18 - if not value and self.required: 19 + if '''value is None'''and self.required:19 + if value is None and self.required: 20 20 raise ValidationError(self.error_messages['required'], code='required') 21 21 }}}