Skip to content

Commit 4aae33d

Browse files
authored
Merge branch 'master' into issues/676-api-radius-user-group
2 parents 383cc86 + 44117af commit 4aae33d

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
@@ -614,13 +614,11 @@ class CreatePhoneTokenView(
614614
)
615615

616616
@swagger_auto_schema(
617-
operation_description=(
618-
"""
617+
operation_description=("""
619618
**Requires the user auth token (Bearer Token).**
620619
Used for SMS verification, sends a code via SMS to the
621620
phone number of the user.
622-
"""
623-
),
621+
"""),
624622
request_body=no_body,
625623
responses={201: ""},
626624
)
@@ -694,14 +692,12 @@ class GetPhoneTokenStatusView(DispatchOrgMixin, GenericAPIView):
694692
serializer_class = serializers.Serializer
695693

696694
@swagger_auto_schema(
697-
operation_description=(
698-
"""
695+
operation_description=("""
699696
**Requires the user auth token (Bearer Token).**
700697
Used for SMS verification, allows checking whether an active
701698
SMS token was already requested for the mobile phone number
702699
of the logged in account.
703-
"""
704-
),
700+
"""),
705701
responses={200: '`{"active":"true/false"}`'},
706702
)
707703
def get(self, request, *args, **kwargs):
@@ -785,13 +781,11 @@ class ChangePhoneNumberView(ThrottledAPIMixin, CreatePhoneTokenView):
785781
serializer_class = ChangePhoneNumberSerializer
786782

787783
@swagger_auto_schema(
788-
operation_description=(
789-
"""
784+
operation_description=("""
790785
**Requires the user auth token (Bearer Token).**
791786
Allows users to change their phone number, will flag the
792787
user as inactive and send them a verification code via SMS.
793-
"""
794-
),
788+
"""),
795789
responses={200: ""},
796790
)
797791
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)