<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def update_shot_browser(self, project, releasetype):
 """Update the shot browser to the given project :param releasetype: the releasetype for the model :type releasetype: :data:`djadapter.RELEASETYPES` :param project: the project of the shots :type project: :class:`djadapter.models.Project` :returns: None :rtype: None :raises: None """

        if project is None:
            self.shotbrws.set_model(None)
            return
        shotmodel = self.create_shot_model(project, releasetype)
        self.shotbrws.set_model(shotmodel)