Re: generic views and non-editable foreign keys

2007-01-19 Thread Maxime Biais
st.org/weblog/2006/11/02/django-tips-auto-populated-fields It's about non editable auto populated fields. -- Maxime Biais http://www.biais.org/blog/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users

Re: Internationalization problem in template system

2007-01-18 Thread Maxime Biais
ls, but perhaps there's a clean way to go about doing it right. class MyModel(Model): text_en = TextField() text_pt_br = TextField() def get_text(self): text_field = "text_%s" % translation.get_language().replace("-", "_")

Re: generic views and non-editable foreign keys

2007-01-16 Thread Maxime Biais
ge... I had the same kind of problem yesterday, that I solve here: http://www.biais.org/blog/index.php/2007/01/16/17-django-generic-view-and-performance-problem The solution is really close to your. Note: you're right, in the hidden input, the name is "foo". -- Maxime Biais --~--~-