What is the best practice for handling this?
Let's say I have a form with 3 fields:
name, b-day, status
I want a form that will allow the user to edit
"name" and "b-day",
then keep "status" whatever it was before the
edit. Should I send this
through as a hidden field?
Of course, I'm talking about a much larger model here, but
simplifying
for the sake of er... simplicity. Actually the model has
about 15
elements and the user will be editing about 10.
The problem is this: if all 15 fields are filled, and some
are set to
"editable=False", the form goes through fine, but
all the fields not
in the form are set to null, or otherwise wiped out. How can
I get
around this? Is my only option to pass all that info through
as hidden
fields?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Django users" group.
To post to this group, send email to django-users googlegroups.com
To unsubscribe from this group, send email to
django-users-unsubscribe googlegroups.com
For more options, visit this group at htt
p://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---
|