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

android - Spacing between the stars of a rating bar? -

html - Instapaper-like algorithm -

c# - How to execute a particular part of code asynchronously in a class -