<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def track_field(field):
 """ Returns whether the given field should be tracked by Actionslog. Untracked fields are many-to-many relations and relations to the Actionslog LogAction model. :param field: The field to check. :type field: Field :return: Whether the given field should be tracked. :rtype: bool """

    from actionslog.models import LogAction
    # Do not track many to many relations
    if field.many_to_many:
        return False

    # Do not track relations to LogAction
    if getattr(field, 'rel', None) is not None and field.rel.to == LogAction:
        return False

    return True