This actually happens when create_notification_settings(self.name) doesnβt execute when a user is created.
Please check if you have overridden any User method in your custom app like after_insert. and make sure that when a user is created its notification_settings is also created.