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
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("-", "_")
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
--~--~-
3 matches
Mail list logo