Skip to content

Commit

Permalink
did: small improvment for Term browse view
Browse files Browse the repository at this point in the history
  • Loading branch information
saemideluxe committed Apr 7, 2022
1 parent a7b6dde commit 7415f6d
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions basxconnect/core/urls.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from bread import views as breadviews
from bread.utils.urls import autopath, default_model_paths, model_urlname, reverse_model
from bread.views import AddView, EditView
from bread.views import AddView, BrowseView, EditView
from django.views.generic import RedirectView

import basxconnect.core.views.tag_views
Expand Down Expand Up @@ -121,7 +121,10 @@
*default_model_paths(
models.Term,
addview=AddView._with(fields=["term", "vocabulary"]),
browseview=TermsBrowseView,
editview=EditView._with(fields=["term", "slug"]),
browseview=TermsBrowseView._with(
rowclickaction=BrowseView.gen_rowclickaction("edit")
),
),
*default_model_paths(
models.Vocabulary,
Expand Down

0 comments on commit 7415f6d

Please sign in to comment.