[Django]-In django prepopulated_fields = {"slug": ("title",)} doesn't show all words

4👍

There is actually a filter in action that prevents certain words from ending up in the slug or url. You can see the source of that here. What it does is that it makes sure that you don’t end up with words or symbols in the slug/url that just shouldn’t be there.

How to fix it? Just change the mentioned file in /django/contrib/admin/static/admin/js/urlify.py and you should be good to go.

Leave a comment