# Path: wagtailplus/views/crud.py
# class IndexView(ListView):
# class BaseFormView(FormView):
#         class BaseChooserObjectList(BaseObjectList):
# class CreateView(BaseFormView, _CreateView):
# class UpdateView(BaseFormView, _UpdateView):
# class DeleteView(_DeleteView):
#     def get(self, request, *args, **kwargs):
#     def get_context_data(self, **kwargs):
#     def get_template_names(self):
#     def form_invalid(self, form):
#     def form_valid(self, form):
#     def get_context_data(self, **kwargs):
#     def get_edit_handler_class(self):
#             def render_missing_fields(self):
#         def ChooserObjectList(children):
#     def get_form_class(self):
#     def delete(self, request, *args, **kwargs):
# 
# Path: wagtailplus/wagtaillinks/models.py
# class Link(BaseLink):
#     """
#     Concrete implementation of link.
#     """
#     pass
# 
# Path: wagtailplus/wagtaillinks/views/choosers.py
# class LinkChooseView(chooser.ChooseView):
# class LinkCreateView(chooser.CreateView):
# class LinkChosenView(chooser.ChosenView):
# class ExternalLinkChooseView(LinkChooseView):
# class EmailLinkChooseView(LinkChooseView):
# class CreateAndEmbedLinkView(chooser.CreateView):
#     def get_queryset(self):
#     def get_search_filters(self):
#     def get_queryset(self):
#     def get_search_filters(self):
#     def get_queryset(self):
#     def form_invalid(self, form):
#     def form_valid(self, form):


from django.conf.urls import url
from django.contrib.auth.decorators import permission_required
from wagtailplus.views import crud
from .models import Link
from .views import choosers

"""
Contains admin URLs.
"""




urlpatterns = [
    url(
        r'^$',
        permission_required('wagtailadmin.access_admin')(crud.IndexView.as_view(
            model=Link,
            index_template='wagtaillinks/links/index.html',
            results_template='wagtaillinks/links/results.html'
        )),
        name='wagtaillinks_index'
    ),
    url(
        r'^add/$',
        permission_required('wagtaillinks.add_link')(crud.CreateView.as_view(
            model=Link,
            template_name='wagtaillinks/links/add.html',
            success_url='wagtaillinks_index'
        )),
        name='wagtaillinks_add_link'
    ),
    url(
        r'^edit/(?P<pk>\d+)/$',

# Path: wagtailplus/views/crud.py
# class IndexView(ListView):
# class BaseFormView(FormView):
#         class BaseChooserObjectList(BaseObjectList):
# class CreateView(BaseFormView, _CreateView):
# class UpdateView(BaseFormView, _UpdateView):
# class DeleteView(_DeleteView):
#     def get(self, request, *args, **kwargs):
#     def get_context_data(self, **kwargs):
#     def get_template_names(self):
#     def form_invalid(self, form):
#     def form_valid(self, form):
#     def get_context_data(self, **kwargs):
#     def get_edit_handler_class(self):
#             def render_missing_fields(self):
#         def ChooserObjectList(children):
#     def get_form_class(self):
#     def delete(self, request, *args, **kwargs):
# 
# Path: wagtailplus/wagtaillinks/models.py
# class Link(BaseLink):
#     """
#     Concrete implementation of link.
#     """
#     pass
# 
# Path: wagtailplus/wagtaillinks/views/choosers.py
# class LinkChooseView(chooser.ChooseView):
# class LinkCreateView(chooser.CreateView):
# class LinkChosenView(chooser.ChosenView):
# class ExternalLinkChooseView(LinkChooseView):
# class EmailLinkChooseView(LinkChooseView):
# class CreateAndEmbedLinkView(chooser.CreateView):
#     def get_queryset(self):
#     def get_search_filters(self):
#     def get_queryset(self):
#     def get_search_filters(self):
#     def get_queryset(self):
#     def form_invalid(self, form):
#     def form_valid(self, form):


# Path: wagtailplus/wagtaillinks/admin_urls.py
from django.conf.urls import url
from django.contrib.auth.decorators import permission_required
from wagtailplus.views import crud
from .models import Link
from .views import choosers

"""
Contains admin URLs.
"""




urlpatterns = [
    url(
        r'^$',
        permission_required('wagtailadmin.access_admin')(crud.IndexView.as_view(
            model=Link,
            index_template='wagtaillinks/links/index.html',
            results_template='wagtaillinks/links/results.html'
        )),
        name='wagtaillinks_index'
    ),
    url(
        r'^add/$',
        permission_required('wagtaillinks.add_link')(crud.CreateView.as_view(
            model=Link,
            template_name='wagtaillinks/links/add.html',
            success_url='wagtaillinks_index'
        )),
        name='wagtaillinks_add_link'
    ),
    url(
        r'^edit/(?P<pk>\d+)/$',

        permission_required('wagtaillinks.change_link')(crud.UpdateView.as_view(
