admin: fix flow ordering, fix source URLs

This commit is contained in:
Jens Langhammer 2020-05-20 16:09:53 +02:00
parent cafe2f1e1f
commit 4377d1e86e
3 changed files with 4 additions and 4 deletions

View File

@ -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>

View File

@ -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",
),

View File

@ -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"