django plural for templates -


how django realize singular form of countries country , not countrie

from docs, if have template variable called num_countries, write like:

countr{{ num_countries|pluralize:"y,ies" }} 

Comments

Popular posts from this blog

SAP Web Service from .NET via WCF -

Optimized Line drawing in QT -

datetime - str to time in python -