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,674 views

3 answers to this question.

0 votes
answered Oct 12, 2020 by David Samon
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,890 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
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,050 points
1,024 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
1,868 views
0 votes
1 answer

I am making a ai in python but there is a error

Hi, @Rhydham, Try this: engine = pyttsx3.init('dummy') If you want ...READ MORE

answered Oct 12, 2020 in Python by Gitika
• 65,890 points

edited Aug 11, 2021 by Soumya 3,182 views
0 votes
1 answer

I want to generate Fibonacci sequence of 100 numbers in Linked list and then reverse in python

Hey,  You can go through the given example ...READ MORE

answered Oct 12, 2020 in Python by Gitika
• 65,890 points
1,226 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