Fixed #23892 -- Made deconstructible classes forwards compatible

Ticket: https://code.djangoproject.com/ticket/23892