Tuesday, April 26, 2016

What's the best way to auto convert a model field values before it is rendered?

Do you need to do actual math with the converted values, or is it just a matter of displaying the original value as the converted value in the template to those users who prefer seeing Fahrenheit? In the latter case all you would have to do is create a custom template tag that takes the original value and displays it as Fahrenheit.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/32a473fc-92ba-4941-ab34-a405ee4f9439%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment