'Create a new application release using the provided Build and Config
on behalf of a user.
Releases start at v1 and auto-increment.'

def new(self, user, config, build, summary=None, source_version=u'latest'):

    new_version = (self.version + 1)
    release = Release.objects.create(owner=user, app=self.app, config=config, build=build, version=new_version, summary=summary)
    try:
        release.publish()
    except EnvironmentError as e:
        log_event(self.app, e)
        pass
    return release
