def git_pull_view(self, request, repo_name):
    'Perform a git pull and redirect back to the repo.'
    LOG.info(('Pull requested for %s.' % repo_name))
    repo = get_object_or_404(self.model, name=repo_name)
    repo.pull()
    self.message_user(request, ('Repo %s successfully updated.' % repo_name), level=messages.SUCCESS)
    return redirect('admin:registry_clonedrepo_change', repo_name)
Perform a git pull and redirect back to the repo.
def git_pull_view(self, request, repo_name):
    
    LOG.info(('Pull requested for %s.' % repo_name))
    repo = get_object_or_404(self.model, name=repo_name)
    repo.pull()
    self.message_user(request, ('Repo %s successfully updated.' % repo_name), level=messages.SUCCESS)
    return redirect('admin:registry_clonedrepo_change', repo_name)