This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
m,, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from datetime import datetime | |
from django.contrib.auth.models import User | |
def update_user_first_name(user_id, new_first_name): | |
return User.objects.filter(id=user_id).update(first_name=new_first_name) | |
def get_user_groups(user_id): | |
try: |