Esempio n. 1
0
    PollDelete,
    PollDetail,
    PollList,
    PollUpdate,
    PollWithHistoricalIPAddressCreate,
)
from . import other_admin

admin.autodiscover()

urlpatterns = [
    url(r'^admin/', admin.site.urls),
    url(r'^other-admin/', other_admin.site.urls),
    url(r'^bucket_data/add/$',
        BucketDataRegisterRequestUserCreate.as_view(),
        name='bucket_data-add'),
    url(r'^bucket_data/(?P<pk>[0-9]+)/$',
        BucketDataRegisterRequestUserDetail.as_view(),
        name='bucket_data-detail'),
    url(r'^poll/add/$', PollCreate.as_view(), name='poll-add'),
    url(r'^pollwithhistoricalipaddress/add$',
        PollWithHistoricalIPAddressCreate.as_view(),
        name='pollip-add'),
    url(r'^poll/(?P<pk>[0-9]+)/$', PollUpdate.as_view(), name='poll-update'),
    url(r'^poll/(?P<pk>[0-9]+)/delete/$',
        PollDelete.as_view(),
        name='poll-delete'),
    url(r'^polls/(?P<pk>[0-9]+)/$', PollDetail.as_view(), name='poll-detail'),
    url(r'^polls/$', PollList.as_view(), name='poll-list')
]
Esempio n. 2
0
admin.autodiscover()

urlpatterns = [
    url(r"^admin/", admin.site.urls),
    url(r"^other-admin/", other_admin.site.urls),
    url(
        r"^bucket_data/add/$",
        BucketDataRegisterRequestUserCreate.as_view(),
        name="bucket_data-add",
    ),
    url(
        r"^bucket_data/(?P<pk>[0-9]+)/$",
        BucketDataRegisterRequestUserDetail.as_view(),
        name="bucket_data-detail",
    ),
    url(r"^poll/add/$", PollCreate.as_view(), name="poll-add"),
    url(
        r"^pollwithhistoricalipaddress/add$",
        PollWithHistoricalIPAddressCreate.as_view(),
        name="pollip-add",
    ),
    url(r"^poll/(?P<pk>[0-9]+)/$", PollUpdate.as_view(), name="poll-update"),
    url(r"^poll/(?P<pk>[0-9]+)/delete/$",
        PollDelete.as_view(),
        name="poll-delete"),
    url(r"^polls/(?P<pk>[0-9]+)/$", PollDetail.as_view(), name="poll-detail"),
    url(r"^polls/$", PollList.as_view(), name="poll-list"),
    url(r"^polls-bulk-create/$",
        PollBulkCreateView.as_view(),
        name="poll-bulk-create"),
    url(
Esempio n. 3
0
from __future__ import unicode_literals

from django.conf.urls import url
from django.contrib import admin

from simple_history.tests.view import (
    PollCreate,
    PollDelete,
    PollDetail,
    PollList,
    PollUpdate
)
from . import other_admin

admin.autodiscover()

urlpatterns = [
    url(r'^admin/', admin.site.urls),
    url(r'^other-admin/', other_admin.site.urls),
    url(r'^poll/add/$', PollCreate.as_view(), name='poll-add'),
    url(r'^poll/(?P<pk>[0-9]+)/$', PollUpdate.as_view(), name='poll-update'),
    url(r'^poll/(?P<pk>[0-9]+)/delete/$', PollDelete.as_view(),
        name='poll-delete'),
    url(r'^polls/(?P<pk>[0-9]+)/$', PollDetail.as_view(), name='poll-detail'),
    url(r'^polls/$', PollList.as_view(), name='poll-list')
]
Esempio n. 4
0
admin.autodiscover()

urlpatterns = [
    path("admin/", admin.site.urls),
    path("other-admin/", other_admin.site.urls),
    path(
        "bucket_data/add/",
        BucketDataRegisterRequestUserCreate.as_view(),
        name="bucket_data-add",
    ),
    re_path(
        r"^bucket_data/(?P<pk>[0-9]+)/$",
        BucketDataRegisterRequestUserDetail.as_view(),
        name="bucket_data-detail",
    ),
    path("poll/add/", PollCreate.as_view(), name="poll-add"),
    path(
        "pollwithhistoricalipaddress/add",
        PollWithHistoricalIPAddressCreate.as_view(),
        name="pollip-add",
    ),
    re_path(r"^poll/(?P<pk>[0-9]+)/$",
            PollUpdate.as_view(),
            name="poll-update"),
    re_path(r"^poll/(?P<pk>[0-9]+)/delete/$",
            PollDelete.as_view(),
            name="poll-delete"),
    re_path(r"^polls/(?P<pk>[0-9]+)/$",
            PollDetail.as_view(),
            name="poll-detail"),
    path("polls/", PollList.as_view(), name="poll-list"),