Re: dynamic field display

2011-08-24 Thread Axel Bock
yaah, but that's the most … inconvenient. the data model allows for the user to customize the fields he wants to use, depending on his requirements. I could start small, but the problem _will_ come at some point, so I thought I asked beforehand. but thanks for the answer, I already started

Re: dynamic field display

2011-08-23 Thread Subhranath Chunder
Manipulating the form instance attributes at runtime in your view might be possible by modifying some internal fields, but that leads to dirty code and not-so-clean views. You can rather use different django forms with different field definitions in your view. This might be the cleanest. You can

dynamic field display

2011-08-22 Thread Axel Bock
Hi group, I have another question about Django forms. I designed a Form for a Model, but now I want to remove fields depending on some user settings. Can I do that? Lets assume the following: class MyModel(models.Model): field1 = TextField(null=True, blank=True) field2 =