TypeError: User() got unexpected keyword arguments: 'reg_data_l' & You may need to make the field read-only, or override the UserSerializer.create()

1,436 views
Skip to first unread message

Aakash Bhaikatti

unread,
Aug 24, 2022, 6:46:06 AM8/24/22
to Django REST framework
I have been getting these errors. Please help guys

As a User

  • I can signup either as LIBRARIAN and MEMBER using username and password
  • I can login using username/password and get JWT access token

As a Librarian

  • I can add, update, and remove Books from the system
  • I can add, update, view, and remove Member from the system

As a Member

  • I can view, borrow, and return available Books
  • Once a book is borrowed, its status will change to BORROWED
  • Once a book is returned, its status will change to AVAILABLE
  • I can delete my own account
Screenshot from 2022-08-24 16-13-13.png
Screenshot from 2022-08-24 16-13-22.png
Screenshot from 2022-08-24 16-13-45.png
Screenshot from 2022-08-24 16-13-36.png
Screenshot from 2022-08-24 16-13-30.png

MAHESH KUMAR

unread,
Aug 24, 2022, 9:15:53 AM8/24/22
to django-res...@googlegroups.com
hi sir plz help

1. User Authentication APIs:
    1. get or create user by phone number, params: “phone_no”, response {“user_id”,”auth_token”},
    2. get or create user by email, params: “email”, response {“user_id”,”auth_token”},

how to write this i was try but i didn't get plz help sir

Thanks & Regards
Mahesh

--
You received this message because you are subscribed to the Google Groups "Django REST framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-rest-fram...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-rest-framework/2eaba437-ddb2-450b-b9c0-905d02d59cean%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages