Skip to content

Commit 44117af

Browse files
committed
[qa] Fixed qa formatting
1 parent b6ef3c6 commit 44117af

2 files changed

Lines changed: 8 additions & 14 deletions

File tree

openwisp_radius/api/views.py

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -609,13 +609,11 @@ class CreatePhoneTokenView(
609609
)
610610

611611
@swagger_auto_schema(
612-
operation_description=(
613-
"""
612+
operation_description=("""
614613
**Requires the user auth token (Bearer Token).**
615614
Used for SMS verification, sends a code via SMS to the
616615
phone number of the user.
617-
"""
618-
),
616+
"""),
619617
request_body=no_body,
620618
responses={201: ""},
621619
)
@@ -689,14 +687,12 @@ class GetPhoneTokenStatusView(DispatchOrgMixin, GenericAPIView):
689687
serializer_class = serializers.Serializer
690688

691689
@swagger_auto_schema(
692-
operation_description=(
693-
"""
690+
operation_description=("""
694691
**Requires the user auth token (Bearer Token).**
695692
Used for SMS verification, allows checking whether an active
696693
SMS token was already requested for the mobile phone number
697694
of the logged in account.
698-
"""
699-
),
695+
"""),
700696
responses={200: '`{"active":"true/false"}`'},
701697
)
702698
def get(self, request, *args, **kwargs):
@@ -780,13 +776,11 @@ class ChangePhoneNumberView(ThrottledAPIMixin, CreatePhoneTokenView):
780776
serializer_class = ChangePhoneNumberSerializer
781777

782778
@swagger_auto_schema(
783-
operation_description=(
784-
"""
779+
operation_description=("""
785780
**Requires the user auth token (Bearer Token).**
786781
Allows users to change their phone number, will flag the
787782
user as inactive and send them a verification code via SMS.
788-
"""
789-
),
783+
"""),
790784
responses={200: ""},
791785
)
792786
def post(self, request, *args, **kwargs):

openwisp_radius/base/models.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -962,8 +962,8 @@ def clean(self):
962962
raise ValidationError(
963963
{
964964
"prefix": _(
965-
"This value may contain only \
966-
letters, numbers, and @/./+/-/_ characters."
965+
"This value may contain only letters, numbers,"
966+
" and `@/./`+/-/_ characters."
967967
)
968968
},
969969
code="invalid",

0 commit comments

Comments
 (0)