How can I create user using is superuser and is staff field that can view other user registered in the system and they can approve and deny using Django rest Framework

0 votes
I am creating Medical Report Management System where user is created using is_staff and is _super user .Is _staff users can view all the hospitals registered in the system and can allow and deny them.
Oct 11, 2020 in Python by Reebika
• 140 points
1,751 views

2 answers to this question.

0 votes

Hi @Reebika,

Could you please post the code you have created for your mini project so that we can resolve the issue? 

answered Oct 12, 2020 by Gitika
• 65,770 points
0 votes

Hi, @Reebika,

You can inherit the inbuilt user model to your custom user model and use it. You can just search the custom user model on google and you find it else let me know. I will provide you my code.

Read up on AAA with Django

answered Oct 13, 2020 by Raina Neman

Related Questions In Python

0 votes
0 answers
0 votes
1 answer

How can I get the username of the logged-in user in Django?

Hello @kartik, You can use the request object ...READ MORE

answered Jul 29, 2020 in Python by Niroj
• 82,840 points
10,826 views
0 votes
1 answer
0 votes
0 answers

"Post Image data using POSTMAN"

I am trying to POST data to ...READ MORE

May 21, 2022 in Others by Kichu
• 19,040 points
1,125 views
0 votes
1 answer

how to download and install Django rest framework?

To install Django, you can simply open ...READ MORE

answered Apr 24, 2018 in Python by Christine
• 15,790 points
2,010 views
0 votes
1 answer

how can i extact all the links from a website using python and save it in a csv file ?

Hi, @Shubham, Web scraping is the technique to ...READ MORE

answered Jun 16, 2020 in Python by Gitika
• 65,770 points
4,139 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP