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 10 in Python by Reebika
• 140 points
110 views

3 answers to this question.

0 votes
answered Oct 12 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 by Gitika
• 50,340 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 by Raina Neman

Related Questions In Python

0 votes
0 answers
0 votes
1 answer
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,810 points
515 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') READ MORE

answered Oct 12 in Python by Gitika
• 50,340 points
122 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 in Python by Gitika
• 50,340 points
26 views