def METHOD_NAME(user):
    """Generate (or regenerate) user API tokens.
    Arguments:
        user: The User object to generate a token for.
    """
    Token.objects.filter(user=user).delete()
    Token.objects.create(user=user)