def perform_create(self, serializer):
    with transaction.atomic():
        user = serializer.save()
        if registration_settings.REGISTER_VERIFICATION_ENABLED:
            send_register_verification_email_notification(self.request, user)
def perform_create(self, serializer):
    with transaction.atomic():
        user = serializer.save()
        if registration_settings.REGISTER_VERIFICATION_ENABLED:
            send_register_verification_email_notification(self.request, user)