Thursday, January 30, 2020

Django

Hi Mick, I suggest you create a slug field in your model which will be used to filter your model rather than an id.If an object get saved with a title of foo bar, the slug field would handle the slugification of that title to "foo-bar"

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/0699a214-f49d-4680-86a5-eb904a99afb9%40googlegroups.com.

No comments:

Post a Comment