Closed suchermon closed 5 years ago
Thanks for tackling this, @suchermon . I did notice a small issue and that's that when you call methods, self
needs to be the first parameter. So your method call wasn't actually doing anything with the user
parameter in that function.
In any case, I changed the call in a few ways:
self.request.user
. Just makes it a little easier to call.callable
. I think this makes it clearer that this code is here to handle django backwards compatibility instead of just some random case where the attribute could be callable or not.Thanks, and let me know if this makes sense or if you have any thoughts or questions.
Sounds good!
ok to merge? So I can pull the latest into EWP project
I think so :+1:
I have upgraded EWP to django 2 so I can use the latest of wagtail. Adding this to support django 1.11 and newer. Please review.