.
This commit is contained in:
@@ -57,12 +57,6 @@ urlpatterns = [
|
||||
views.SeriesCreate.as_view(),
|
||||
name="series_id_create",
|
||||
),
|
||||
path("examination/create/", views.create_examination, name="create_examination"),
|
||||
path(
|
||||
"examination/ajax/get_examination_id",
|
||||
views.get_examination_id,
|
||||
name="get_examination_id",
|
||||
),
|
||||
path(
|
||||
"question/<int:pk>/update",
|
||||
views.AtlasUpdate.as_view(),
|
||||
|
||||
@@ -31,7 +31,6 @@ from .forms import (
|
||||
SeriesForm,
|
||||
SeriesImageFormSet,
|
||||
SeriesFormSet,
|
||||
ExaminationForm,
|
||||
SeriesFindingForm,
|
||||
CaseDifferentialFormSet,
|
||||
)
|
||||
@@ -456,20 +455,6 @@ def atlas_scrap(request, pk):
|
||||
# return render(request, "atlas/create_simple.html", {'form': form})
|
||||
|
||||
|
||||
@login_required
|
||||
def create_examination(request):
|
||||
form = ExaminationForm(request.POST or None)
|
||||
if form.is_valid():
|
||||
instance = form.save()
|
||||
return HttpResponse(
|
||||
'<script>opener.closePopup(window, "%s", "%s", "#id_examination");</script>'
|
||||
% (instance.pk, instance)
|
||||
)
|
||||
return render(
|
||||
request, "atlas/create_simple.html", {"form": form, "name": "Examination"}
|
||||
)
|
||||
|
||||
|
||||
@csrf_exempt
|
||||
def get_examination_id(request):
|
||||
if request.is_ajax():
|
||||
|
||||
Reference in New Issue
Block a user