Tutorial: Adding a complex action to a table

Bug #1625566 reported by Johan Öhman Saldes
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Dashboard (Horizon)
Fix Released
Low
Kenji Ishii

Bug Description

urlpatterns = [,
    url(r'^$',
        views.IndexView.as_view(), name='index'),
    url(r'^(?P<instance_id>[^/]+)/create_snapshot/$',
        views.CreateSnapshotView.as_view(),
        name='create_snapshot'),
]

Still gives an error for me? I removed the comma as such:

urlpatterns = [
    url(r'^$',
        views.IndexView.as_view(), name='index'),
    url(r'^(?P<instance_id>[^/]+)/create_snapshot/$',
        views.CreateSnapshotView.as_view(),
        name='create_snapshot'),
]

And it worked!

PS. This is a double thought it may as well be it's own report because where I posted the double wasn't precisely solid imo, feel free to correct me otherwise DS.

Kenji Ishii (ken-ishii)
Changed in horizon:
assignee: nobody → Kenji Ishii (ken-ishii)
Changed in horizon:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to horizon (master)

Reviewed: https://review.openstack.org/373649
Committed: https://git.openstack.org/cgit/openstack/horizon/commit/?id=44afeac9d4f14c7c9b0b2685bbdedbf545101562
Submitter: Jenkins
Branch: master

commit 44afeac9d4f14c7c9b0b2685bbdedbf545101562
Author: Kenji Ishii <email address hidden>
Date: Wed Sep 21 14:10:10 2016 +0900

    [Trivial]remove unnecessary commna

    Change-Id: Ie174e707adbc9ad668a2ad516e2cda11a8646b49
    Closes-Bug: #1625566

Changed in horizon:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/horizon 11.0.0.0b1

This issue was fixed in the openstack/horizon 11.0.0.0b1 development milestone.

Changed in horizon:
milestone: none → ocata-1
importance: Undecided → Low
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.