Changes between Initial Version and Version 1 of Ticket #29656


Ignore:
Timestamp:
Aug 10, 2018, 10:18:53 AM (6 years ago)
Author:
James Addison
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #29656 – Description

    initial v1  
    55----
    66
    7 Saving a modelform with a model's rangefield 2 inputs left empty triggers an DB integrity error. I think the culprit lies with `empty_values` not containing `['', '']` as a possible empty value. (see the code around https://github.com/django/django/blob/1.11.15/django/forms/fields.py#L1026)
     7Saving a modelform with a model's rangefield 2 inputs left empty triggers an DB integrity error. I think the culprit lies with `empty_values` not containing `['', '']` as a possible empty value. (see the code around https://github.com/django/django/blob/1.11.15/django/forms/fields.py#L1026).
     8
     9'''`self.compress([])` should return the result of `self.range_type(None, None)` instead of just `None`.'''
    810
    911With a view like:
Back to Top