Django NoReverseMatch

Не находит подходящий url из списка(полагаю, что он принимает строку за кортеж)

NoReverseMatch at /decision/livingrooms/kitchen/
Reverse for 'style' with arguments '('provans',)' not found. 1 pattern(s) tried: ['decision/livingrooms/(?P<rmslg>[-a-zA-Z0-9_]+)/(?P<stslg>[-a-zA-Z0-9_]+)/$']

Шаблон

<ul class="menu menu_interiors">
            {% for room in rooms %}
                <li class="menu__item menu__item_interiors"><a href="{% url 'decision:room' room.slug %}">{{ room.name }}</a></li>
            {% endfor %}


        </ul>
<ul class="menu menu_styles">
            {% for style in styles %}
                <li class="menu__item menu__item_interiors"><a href="{% url 'decision:style' style.slug %}">{{ style.name }}</a></li>
            {% endfor %}
        </ul>

urls.py

from django.urls import path
from .views import ContactView
from . import views

app_name = 'decision'

urlpatterns = [
    path('livingrooms/', ContactView.as_view(), name='livingrooms'),
    path('livingrooms/<slug:rmslg>/', views.room, name='room'),
    path('livingrooms/<slug:rmslg>/<slug:stslg>/', views.style, name='style'),
]

views.py

def room(request, rmslg):
    styles = Room.objects.get(slug=rmslg).styles.all()
    print(len(styles))
    return render(request, 'decision/residentialInteriors.html', {"styles": styles})


def style(request, stslg):
    style = Style.objects.get(slug=stslg)
    return render(request, 'decision/residentialInteriors.html', {"style": style})

Ответы (0 шт):