'Return whether `user` can edit this answer.'

def allows_edit(self, user, question=None):

    if (question is None):
        question = self.question
    return (user.has_perm('questions.change_answer') or (question.editable and (self.creator == user)))
