Reputation: 139
I want to create meta description on my website, in this moment i have this function for get product description :
{{ product.description|nl2br }}
Need edit this function for get only the first 150 characters for create meta description, is possible this in template ? or need create this function in views.py ?
Upvotes: 4
Views: 6304