from django.conf.urls import url

from molo.core.content_import.api import admin_views


urlpatterns = [
    url(r"^import-articles/$", admin_views.ArticleImportView.as_view(), name="article-import"),
    url(r"^parent/$", admin_views.ChooseParentView.as_view(model_admin=admin_views.ArticleModelAdmin()), name="test-parent"),
]
from django.conf.urls import url

from molo.core.content_import.api import admin_views


urlpatterns = [
    url(r"^import-articles/$", admin_views.ArticleImportView.as_view(), name="article-import"),
    url(r"^parent/$", admin_views.ArticleChooserView.as_view(model_admin=admin_views.ArticleModelAdmin()), name="test-parent"),
]
Fix name of Aritlce Parent Chooser view as used by the URLs
Fix name of Aritlce Parent Chooser view as used by the URLs

  from django.conf.urls import url
  
  from molo.core.content_import.api import admin_views
  
  
  urlpatterns = [
      url(r"^import-articles/$", admin_views.ArticleImportView.as_view(), name="article-import"),
-     url(r"^parent/$", admin_views.ChooseParentView.as_view(model_admin=admin_views.ArticleModelAdmin()), name="test-parent"),
+     url(r"^parent/$", admin_views.ArticleChooserView.as_view(model_admin=admin_views.ArticleModelAdmin()), name="test-parent"),
  ]
Fix name of Aritlce Parent Chooser view as used by the URLs
## Code Before:
from django.conf.urls import url

from molo.core.content_import.api import admin_views


urlpatterns = [
    url(r"^import-articles/$", admin_views.ArticleImportView.as_view(), name="article-import"),
    url(r"^parent/$", admin_views.ChooseParentView.as_view(model_admin=admin_views.ArticleModelAdmin()), name="test-parent"),
]
## Instruction:
Fix name of Aritlce Parent Chooser view as used by the URLs
## Code After:
from django.conf.urls import url

from molo.core.content_import.api import admin_views


urlpatterns = [
    url(r"^import-articles/$", admin_views.ArticleImportView.as_view(), name="article-import"),
    url(r"^parent/$", admin_views.ArticleChooserView.as_view(model_admin=admin_views.ArticleModelAdmin()), name="test-parent"),
]