admin: fix flow ordering, fix source URLs
This commit is contained in:
		| @ -94,7 +94,7 @@ | ||||
|                     </section> | ||||
|                 </li> | ||||
|                 <li class="pf-c-nav__item pf-m-expandable pf-m-expanded"> | ||||
|                     <a href="#" class="pf-c-nav__link" aria-expanded="true">{% trans 'Policies and Bindings' %} | ||||
|                     <a href="#" class="pf-c-nav__link" aria-expanded="true">{% trans 'Policies' %} | ||||
|                         <span class="pf-c-nav__toggle"> | ||||
|                             <i class="fas fa-angle-right" aria-hidden="true"></i> | ||||
|                         </span> | ||||
|  | ||||
| @ -46,12 +46,12 @@ urlpatterns = [ | ||||
|     path("sources/", sources.SourceListView.as_view(), name="sources"), | ||||
|     path("sources/create/", sources.SourceCreateView.as_view(), name="source-create"), | ||||
|     path( | ||||
|         "sources/<int:pk>/update/", | ||||
|         "sources/<uuid:pk>/update/", | ||||
|         sources.SourceUpdateView.as_view(), | ||||
|         name="source-update", | ||||
|     ), | ||||
|     path( | ||||
|         "sources/<int:pk>/delete/", | ||||
|         "sources/<uuid:pk>/delete/", | ||||
|         sources.SourceDeleteView.as_view(), | ||||
|         name="source-delete", | ||||
|     ), | ||||
|  | ||||
| @ -21,7 +21,7 @@ class StageBindingListView(LoginRequiredMixin, PermissionListMixin, ListView): | ||||
|     model = FlowStageBinding | ||||
|     permission_required = "passbook_flows.view_flowstagebinding" | ||||
|     paginate_by = 10 | ||||
|     ordering = ["order", "flow"] | ||||
|     ordering = ["flow", "order"] | ||||
|     template_name = "administration/stage_binding/list.html" | ||||
|  | ||||
|  | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 Jens Langhammer
					Jens Langhammer