how to give custom permission for creating task 
example my model defined two types of fields 
1.Doctor model
doctor model contating is_doctor field 
2.Patient model
patient model containing Is_patient field

when i am creating some tasks patient token also creating doctors tasks

go through
my code:
django - How to Create custom permission classes? - Stack Overflow 
<https://stackoverflow.com/questions/65683172/how-to-create-custom-permission-classes>
 
https://stackoverflow.com/users/11869457/prashanth 

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-rest-framework/3be64bd9-d54a-4124-a078-7bdc0e7b9ec6n%40googlegroups.com.

Reply via email to