def METHOD_NAME(user):
    content_type = ContentType.objects.get_for_model(Attendee)
    add_attendee_permission, _ = Permission.objects.get_or_create(
        codename=ADD_ATTENDEE_PERMISSION_CODE_NAME, content_type=content_type,
        defaults=dict(name=ADD_ATTENDEE_PERMISSION_NAME)
    )
    change_attendee_permission, _ = Permission.objects.get_or_create(
        codename=CHANGE_ATTENDEE_PERMISSION_CODE_NAME, content_type=content_type,
        defaults=dict(name=CHANGE_ATTENDEE_PERMISSION_NAME)
    )
    user.user_permissions.add(add_attendee_permission)
    user.user_permissions.add(change_attendee_permission)
    attendance_permission = get_or_create_attendance_permission()
    user.user_permissions.add(attendance_permission)