spejstore/auth/pipeline.py

4 lines
114 B
Python
Raw Normal View History

2018-10-10 17:56:43 +00:00
def staff_me_up(backend, details, response, uid, user, *args, **kwargs):
user.is_staff = True
user.save()