def save(self):
        avatar_services.enabled_services = [
            avatar_services.get('avatar_service_id', service_id)
            for service_id in self.cleaned_data['enabled_services']
        ]
        avatar_services.set_default_service(
            self.cleaned_data['default_service'],
            save=False)
        avatar_services.avatars_enabled = self.cleaned_data['avatars_enabled']
        avatar_services.save()
Save the enabled services and default service to the database.
dataset/ETHPy150Open reviewboard/reviewboard/reviewboard/admin/forms.py/AvatarServicesForm.save