Closed ValentinCreative closed 4 years ago
Hi, I added trailing_slash
param to view(...)
, try smth like this:
mptt_urls.view(model='gallery.models.Category', view='gallery.views.category', slug_field='slug', trailing_slash=False)
New version of the package (2.0.4) is uploaded to PyPi.
Lmk if it works for you.
Hi,
On my routes if I omit the trailing space, the view does not return the instance.
I managed to create a fix with a decorator like this :
It works but i found the fix a bit ugly.
Is there something I missed with your library to manage this case ?