Exemple #1
0
    url(r'^layers/create/?$',
        login_required(CreateView.as_view(template_name='core/crispy_form.html', form_class=LayerForm)),
        name='layer-create'),

    url(r'^layers/update/(?P<pk>\d+)/?$',
        login_required(UpdateView.as_view(template_name='core/crispy_form.html',
                           queryset=LayerForm.Meta.model.objects.all(),
                           form_class=LayerForm)),
        name='layer-update'),

    url(r'^layers/delete/(?P<pk>\d+)/?$',
        login_required(LayerDelete.as_view()),
        name='layer-delete'),

    url(r'^layers/import/?$',
        LayerImport.as_view(),
        name='layer-import'),

    # MapLayer CRUD Views

    url(r'^map-layers/create/?$',
        login_required(CreateView.as_view(template_name='core/generic_form.html',
                           form_class=MapLayerForm)),
        name='map-layer-create'),

    url(r'^map-layers/update/(?P<pk>\d+)/?$',
        login_required(UpdateView.as_view(template_name='core/generic_form.html',
                           queryset=MapLayerForm.Meta.model.objects.all(),
                           form_class=MapLayerForm)),
        name='map-layer-update'),
Exemple #2
0
        name='layer-list'),
    url(r'^layers/create/?$',
        login_required(
            CreateView.as_view(template_name='core/generic_form.html',
                               form_class=LayerForm)),
        name='layer-create'),
    url(r'^layers/update/(?P<pk>\d+)/?$',
        login_required(
            UpdateView.as_view(template_name='core/generic_form.html',
                               queryset=LayerForm.Meta.model.objects.all(),
                               form_class=LayerForm)),
        name='layer-update'),
    url(r'^layers/delete/(?P<pk>\d+)/?$',
        login_required(LayerDelete.as_view()),
        name='layer-delete'),
    url(r'^layers/import/?$', LayerImport.as_view(), name='layer-import'),

    # MapLayer CRUD Views
    url(r'^map-layers/create/?$',
        login_required(
            CreateView.as_view(template_name='core/generic_form.html',
                               form_class=MapLayerForm)),
        name='map-layer-create'),
    url(r'^map-layers/update/(?P<pk>\d+)/?$',
        login_required(
            UpdateView.as_view(template_name='core/generic_form.html',
                               queryset=MapLayerForm.Meta.model.objects.all(),
                               form_class=MapLayerForm)),
        name='map-layer-update'),
)
Exemple #3
0
    url(r'^layers/create/?$',
        login_required(CreateView.as_view(template_name='core/crispy_form.html', form_class=LayerForm)),
        name='layer-create'),

    url(r'^layers/update/(?P<pk>\d+)/?$',
        login_required(UpdateView.as_view(template_name='core/crispy_form.html',
                           queryset=LayerForm.Meta.model.objects.all(),
                           form_class=LayerForm)),
        name='layer-update'),

    url(r'^layers/delete/(?P<pk>\d+)/?$',
        login_required(LayerDelete.as_view()),
        name='layer-delete'),

    url(r'^layers/import/?$',
        LayerImport.as_view(),
        name='layer-import'),

    # MapLayer CRUD Views

    url(r'^map-layers/create/?$',
        login_required(CreateView.as_view(template_name='core/generic_form.html',
                           form_class=MapLayerForm)),
        name='map-layer-create'),

    url(r'^map-layers/update/(?P<pk>\d+)/?$',
        login_required(UpdateView.as_view(template_name='core/generic_form.html',
                           queryset=MapLayerForm.Meta.model.objects.all(),
                           form_class=MapLayerForm)),
        name='map-layer-update'),