Skip to content

Conversation

@sudip-khanal
Copy link
Contributor

Addresses

Changes

  • Add role and permission
  • Replace depricated custom pagination with strawberry pagination
  • Add filters and order by in queries
  • Add test case

This PR doesn't introduce any:

  • temporary files, auto-generated files or secret keys
  • n+1 queries
  • flake8 issues
  • print
  • typos
  • unwanted comments

This PR contains valid:

  • tests
  • [] permission checks (tests here too)

ADMIN = 2, _("Admin")
USER = 3, _("User")

user = models.ForeignKey(User, on_delete=models.CASCADE)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can user have multiple role ?

feat(permission): Add role model and permission
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants