@require_http_methods(['GET', 'POST'])
@require_existing_repo
@login_required
@require_owner_access
def repository_settings(request, username, repository):

    repo = Repository.objects.get(owner=request.user, name=repository)
    if request.method == 'POST':
        form = RepositoryCreationForm(data=request.POST, user=request.user, instance=repo, edit=True)
        if form.is_valid():
            form.save()
            return redirect('view_repository', username=form.instance.owner.username, repository=form.instance.name)
    elif request.method == 'GET':
        form = RepositoryCreationForm(instance=repo, edit=True)

    return render(request, 'repository/repo-settings.html',
                    {'repo': repo, 'repo_owner': username, 'repo_name': repository, 'form': form})
Set breakpoint condition
dataset/ETHPy150Open Djacket/djacket/core/backend/repository/views.py/repository_settings--crossover with--dataset/ETHPy150Open EiNSTeiN-/idapython/python/idc.py/SetBptCnd