def _get_default_object(self, notification): return UserNotification(user=self.get_account_viewset().get_object(), notification_id=notification.id, enabled=notification.default_checked)
def _get_default_object(self, notification): return UserNotification( user=self.get_user(), notification_id=notification.id, enabled=notification.default_checked, )