Skip to content

Toy project for learning how to properly use Django guardian object permissions

License

Notifications You must be signed in to change notification settings

780Farva/django_guardian_playground

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Django Guardian Playground (with DRF)

I made this repository to learn django guardian on top of the django rest framework.

At this stage, I'm unable to effectively give a non-staff user view permissions to list their own selves through the api. The tests in the users app demonstrate this.

Project Structure

This project uses a custom user, as defined in users.models.

CRUD operations on this model are exposed using a DRF ViewSet in the users.views.

Permissions are given to users inside a signal receiver in users.models.

The admin group is created in migration 0005_make_admins_group.py and that group's permissions are enforced in the same signal receiver.

About

Toy project for learning how to properly use Django guardian object permissions

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages