0xE111 / django-mptt-urls

Creating hierarchical URLs in Django associated with django-MPTT models
MIT License
36 stars 5 forks source link

'NoneType' object has no attribute 'get_ancestors' #14

Open jakubstrawa1 opened 2 years ago

jakubstrawa1 commented 2 years ago

Hey, i've set up django-mptt-urls using your documentation, and everything works except if you remove the trailing slash at the end of url, f.e: localhost.com/category1/category2

i get an error AttributeError at /category1/category2 'NoneType' object has no attribute 'get_ancestors'

It is said that it raises ValueError, but it gives status 500 on the server.

Do you have any idea how to fix it?