From 9250bc9babf70b28ba971e5e9d6f0526ceaac2f0 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Tue, 12 Jun 2018 17:59:34 +0200 Subject: Fix find test --- ishtar_common/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ishtar_common/utils.py') diff --git a/ishtar_common/utils.py b/ishtar_common/utils.py index 6331766e1..c3a297174 100644 --- a/ishtar_common/utils.py +++ b/ishtar_common/utils.py @@ -796,7 +796,7 @@ def get_urls_for_model(model, views, own=False, autocomplete=False): Generate get and show url for a model """ urls = [ - url(r'show-{}/(?P.+)/(?P.+)?$'.format(model.SLUG), + url(r'show-{}(?:/(?P.+))?/(?P.+)?$'.format(model.SLUG), check_rights(['view_' + model.SLUG, 'view_own_' + model.SLUG])( getattr(views, 'show_' + model.SLUG)), name="show-" + model.SLUG), -- cgit v1.2.3