Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

widget rendering in forms now uses the templating system instead of python

I haven't looked at how it's implemented yet, but that sounds like a real godsend.



They did the same with the login views, they are now class-based and easy to customize.

Very useful when you have an exotic templating engine for example and can't inherit the `registration/login.html` template


There's now a get_context() method which returns a dict of useful info. the render() method takes that and applies it to widget.template_name.


I have looked at it, and it is a godsend.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: