It seems to me that these mixins can accomplish similar goals in different ways. I can let someone access a view by checking if the user has a permission with PermissionRequiredMixin, or I can use UserPassesTest and write a test_func that checks if a user is in a particular group, or even check the permission there.
I'm new to Django and am having trouble knowing when to use one versus the other. In isolation I understand what they do, but not well enough to understand where they are appropriate.
A couple scenarios I've come across I'm not certain which is best
- Which should I use to limit access to certain views?
- In an app where users can create objects, limiting updating/deletion of these objects to the creator