Fix for Django deprecation

This change removes the use of the deprecated `defaults` module.