|
23 | 23 |
|
24 | 24 | from core.permissions import IsOwnerOrReadOnly |
25 | 25 | from core.utils import Email |
26 | | -from users.helpers import VERBOSE_ROLE_TYPES |
| 26 | +from users.helpers import VERBOSE_ROLE_TYPES, VERBOSE_USER_TYPES |
27 | 27 | from users.models import UserAchievement |
28 | 28 | from users.permissions import IsAchievementOwnerOrReadOnly |
29 | 29 | from users.serializers import ( |
@@ -77,7 +77,7 @@ def post(self, request, *args, **kwargs): |
77 | 77 | return Response(serializer.data, status=status.HTTP_201_CREATED, headers=headers) |
78 | 78 |
|
79 | 79 |
|
80 | | -class UserAdditionalRoles(GenericAPIView): |
| 80 | +class UserAdditionalRolesView(GenericAPIView): |
81 | 81 | permission_classes = [AllowAny] |
82 | 82 |
|
83 | 83 | def get(self, request, format=None): |
@@ -116,12 +116,12 @@ def get(self, request): |
116 | 116 | return Response(serializer.data, status=status.HTTP_200_OK) |
117 | 117 |
|
118 | 118 |
|
119 | | -class UserTypes(APIView): |
| 119 | +class UserTypesView(APIView): |
120 | 120 | def get(self, request, format=None): |
121 | 121 | """ |
122 | 122 | Return a list of tuples [(id, name), ..] of user types. |
123 | 123 | """ |
124 | | - return Response(User.VERBOSE_USER_TYPES) |
| 124 | + return Response(VERBOSE_USER_TYPES) |
125 | 125 |
|
126 | 126 |
|
127 | 127 | class VerifyEmail(GenericAPIView): |
|
0 commit comments