Hi stack overflow,
I guess this is a really novice question, still I'm having trouble with django templates and CharField models.
So I have a model with a CharField that creates a slug that replaces spaces with underscores. If I create an object Somename Somesurname this creates slug Somename_Somesurname and gets displayed as expected on the template.
However, if I create an object
Somename Somesurname (notice the second space), slug Somename__Somesurname is created, and although on django console I see this as <Object: Somename Somesurname>
, on the template it is displayed as Somename Somesurname.
So django templates strips somehow spaces? Is there a filter I can use to get the name with it's spaces?
Thank you for your time!