Fix import compatibility

The original import only worked on Django 4.2+