Hey Carlton,
I think everybody said what they would. What do you say?
I propose throwing out the proposed behavior as Option B, and see what
happens. Something along these lines:
*class *ModelBackendIgnoreObject(ModelBackend):
*def *get_user_permissions(self, user_obj, obj=*None*):
*if *obj *is None*:
obj =
*"NOT_NONE"
*super().get_user_permissions(user_obj, obj)
*def *get_group_permissions(self, user_obj, obj=*None*):
*if *obj *is None*:
obj =
*"NOT_NONE"
*super().get_group_permissions(user_obj, obj)
*def *get_all_permissions(self, user_obj, obj=*None*):
*if *obj *is None*:
obj =
*"NOT_NONE"
*super().get_all_permissions(user_obj, obj)
*def *has_perm(self, user_obj, perm, obj=*None*):
*if *obj *is None*:
obj =
*"NOT_NONE"
*super().has_perm(user_obj, obj)
By the time, I am getting acclimated to the idea of "do not fix" but I think
this is good for new comers to the framework, and general population.
--
You received this message because you are subscribed to the Google Groups
"Django developers (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/django-developers.
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-developers/6d05b14d-dd56-4030-b9f9-15c8c8d8439a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.