Open reeteshranjan opened 8 years ago
Thanks for your PR! Two comments, really:
allow_lazy_user
. Pull that out into a shared function.Thanks!
(Oh - and sorry for the delay - all my GH notifications are going astray at the moment, and I'm trying to figure out why...)
I would soon come back with the refactored version and tests. Thanks for your response!
The
allow_lazy_user
decorator is not designed to be used with class methods that prevents one from using it with class based views. We have added a new decoratorallow_lazy_user_method
that accepts the instance/self as required and propagates it through the wrap logic. We have used this version in our project successfully where we needed lazy signup to work with a django rest framework view class.