'Sets the \'forum\' field choices to forums the user can see.'

def set_allowed_forums(self, user):

    forums = [(f.id, f.name) for f in DiscussionForum.authorized_forums_for_user(user)]
    self.fields['forum'].choices = forums
