def METHOD_NAME(self, obj):
    if is_whoosh():
        try:
            temp = int(obj.allow_member_edit)
        except TypeError:
            temp = 0
        return temp
    return obj.allow_member_edit