spejstore-new/auth/pipeline.py

4 lines
114 B
Python

def staff_me_up(backend, details, response, uid, user, *args, **kwargs):
user.is_staff = True
user.save()