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 "s
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
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 = Textfield(nu
3 matches
Mail list logo