def can_edit(user, obj):
    if user.id == obj.uid or is_administrator(user):
        return True
    return False
def isadministrator(user):
    return is_administrator(user)