@@ -1,17 +1,10 @@ -from authentication.exceptions.business_host_exceptions.base_already import ( - BaseAlready, -) -from django.utils.translation import gettext_lazy as _ +from django.utils.translation import gettext as _ -class AlreadyHasPlan(BaseAlready): - def msg(self): - return dict( - message=_( - 'You already have an active tariff plan. You must request a ' - 'cancellation of your current tariff plan, after which ' - 'you will be able to create a Corporate Account.' - ), - user_id=self.user.uid, - plan_id=self.user.payment_plan.plan.uid, +class AlreadyHasPlan(Exception): + def __str__(self) -> str: + return _( + 'You already have an active tariff plan. You must request a ' + 'cancellation of your current tariff plan (via the \"Report an error\" button), after which ' + 'you will be able to create a Corporate Account.' ) @@ -33,11 +33,11 @@ msgstr "У вас недостаточно прав для выполнения #: authentication/exceptions/business_host_exceptions/already_has_plan.py:11 msgid "" "You already have an active tariff plan. You must request a cancellation of " -"your current tariff plan, after which you will be able to create a Corporate " +"your current tariff plan (via the \"Report an error\" button), after which you will be able to create a Corporate " "Account." msgstr "" "У вас уже активен тарифный план. Необходимо запросить аннулирование текущего " -"тарифного плана, после чего у вас появится возможность создать Корпоративный " +"тарифного плана (через кнопку \"Сообщить об ошибке\"), после чего у вас появится возможность создать Корпоративный " "Аккаунт" #: authentication/exceptions/business_host_exceptions/not_allowed_ip.py:6