user inquiry
This commit is contained in:
parent
aff7785e7e
commit
ca4a46a668
2 changed files with 7 additions and 3 deletions
|
|
@ -105,8 +105,11 @@ class UserInquirySerializer(serializers.ModelSerializer):
|
|||
|
||||
class Meta:
|
||||
model = User
|
||||
fields = ('avatar', 'name', 'username', "first_name", "last_name", "uuid", 'phone_number')
|
||||
read_only_fields = ['avatar', 'name', 'username', 'first_name', 'last_name', "uuid"]
|
||||
# fields = ('avatar', 'name', 'username', "first_name", "last_name", "uuid", 'phone_number')
|
||||
# read_only_fields = ['avatar', 'name', 'username', 'first_name', 'last_name', "uuid"]
|
||||
|
||||
fields = ("uuid", 'phone_number')
|
||||
read_only_fields = ["uuid"]
|
||||
|
||||
def save(self, **kwargs):
|
||||
# TODO: move it to query set
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
from django.urls import path
|
||||
from django.contrib.auth.views import LogoutView
|
||||
from .views import UserListView, UserDetailView, AccountView, RequestOTPView, ChangePasswordView, \
|
||||
OTPLoginView, ProfileDetailView, ProfileUpdateView, RequestOTTView, UserCurrentAvatarUrlView
|
||||
OTPLoginView, ProfileDetailView, ProfileUpdateView, RequestOTTView, UserCurrentAvatarUrlView, UserInquiryView
|
||||
|
||||
app_name = "users"
|
||||
|
||||
|
|
@ -17,4 +17,5 @@ urlpatterns = [
|
|||
path('api/request_otp/', RequestOTPView.as_view(), name='request_otp_api'),
|
||||
path('api/request_ott/', RequestOTTView.as_view(), name='request_ott_api'),
|
||||
path('api/change_password/', ChangePasswordView.as_view(), name='change_password_api'),
|
||||
path('api/inquiry/', UserInquiryView.as_view(), name='user_inquiry_api'),
|
||||
]
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue