You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have recently encountered a problem with the widget when it is used as an inline widget in Admin. The problem is that the django was saving a new record for the inline form containing the widget even if you do not enter any value in that form.
Django 2.2
Workaround: in the value_from_datadict function, we should return a list of None, the IF condition should be like the following and we should return None on ValueError expection:
I have recently encountered a problem with the widget when it is used as an inline widget in Admin. The problem is that the django was saving a new record for the inline form containing the widget even if you do not enter any value in that form.
Django 2.2
Workaround: in the
value_from_datadict
function, we should return a list ofNone
, the IF condition should be like the following and we should returnNone
onValueError
expection:The text was updated successfully, but these errors were encountered: