Ticket #1353: trunk-is_required_check_null.diff
File trunk-is_required_check_null.diff, 728 bytes (added by , 19 years ago) |
---|
-
core/meta/fields.py
269 269 # are a special case, and fields in a related context should set this 270 270 # as False, because they'll be caught by a separate validator -- 271 271 # RequiredIfOtherFieldGiven. 272 params['is_required'] = not self.blankand not self.primary_key and not rel272 params['is_required'] = not (self.null or self.blank) and not self.primary_key and not rel 273 273 274 274 # If this field is in a related context, check whether any other fields 275 275 # in the related object have core=True. If so, add a validator --