def resolve(self, user, notify=True):
        self.resolved_at = timezone.now()
        self.resolved_by = user
        self.save(update_fields=('resolved_at', 'resolved_by'))

        if notify:
            chat.send((u'Issue <https://allmychanges.com{url}|#{issue_id}> '
                       u'for {namespace}/{name} was resolved by {username}.').format(
                url=reverse('issue-detail', pk=self.id),
                issue_id=self.id,
                namespace=self.changelog.namespace,
                name=self.changelog.name,
                username=user.username))

        if self.type == 'auto-paused':
            changelog = self.changelog
            with log.fields(changelog_id=changelog.id):
                log.info('Resuming changelog updates')
                changelog.resume()

                if notify:
                    chat.send(u'Autopaused package {namespace}/{name} was resumed {username}.'.format(
                        namespace=changelog.namespace,
                        name=changelog.name,
                        username=user.username))