﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
25597	Python 3 compatibility error in PostgreSQL array form fields	Bertrand Bordage	Tim Graham <timograham@…>	"[https://github.com/django/django/blob/master/django/contrib/postgres/forms/array.py django.contrib.postgres.forms.array] uses several times the old `Exception.message` attribute to get the error message instead of `str(Exception)`. This breaks compatibility with Python 3 at least when using `SplitArrayField`, but it should also lead to errors on other form fields from this module.

Minimal example:

{{{#!python
from django.contrib.postgres.forms import SplitArrayField
from django.forms import IntegerField

SplitArrayField(IntegerField(max_value=100), size=2).clean([0, 101])
}}}

This leads to an `AttributeError: 'ValidationError' object has no attribute 'message'`"	Bug	closed	contrib.postgres	1.8	Release blocker	fixed			Accepted	1	0	0	0	1	0
