I think this is a good idea. Django has used __html__ internally for the
last 4 years so it's not something new [0]. I'm surprised this doesn't work
out-of-the box.

[0] https://code.djangoproject.com/ticket/7261

On Tue, Sep 26, 2017 at 9:26 AM, George-Cristian Bîrzan <g...@birzan.org>
wrote:

> On Tuesday, September 26, 2017 at 3:34:29 PM UTC+3, Jonas H wrote:
>>
>> Proposal: Support the __html__ method as an alternative/addition to the
>> __str__ for turning objects into strings in the template layer.
>>
>>
> Dunder methods' names shouldn't be invented, so a better name is needed.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django developers (Contributions to Django itself)" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-developers+unsubscr...@googlegroups.com.
> To post to this group, send email to django-developers@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-developers.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/django-developers/16f056c0-0ed8-424f-ae9e-
> 9ab7a7bf66cb%40googlegroups.com
> <https://groups.google.com/d/msgid/django-developers/16f056c0-0ed8-424f-ae9e-9ab7a7bf66cb%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers  (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-developers+unsubscr...@googlegroups.com.
To post to this group, send email to django-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/django-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-developers/CAFO84S6Wx8APyAtTH1Z-p_YJi%3DFYkLUqWq2tdrtbevzJAiqndQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to