How to convert amount to lakh and crore in django. for example if amount is 100 000 I want to show 1 Lakh. Is it possible to do this by using a custom template tag?
I'm a beginner so this is the code I wrote to get this done. But how to use this in template tag?
if properties.expected_price >= 100000:
expected_price_in = expected_price/100000
elif properties.expected_price >= 1000000:
expected_price_in = expected_price/1000000
else:
expected_price_in = expected_price