Fix override decorator

See https://code.djangoproject.com/ticket/23381#ticket