Fix widget has changed bug

This fixes https://code.djangoproject.com/ticket/19557 which has been reported 5 month ago and still is open.