Hi.

I am using Django v1.0. When I use the "fields" attribute in my model
to tell the admin interface what fields to display on the change form,
I find that any fields I leave out get truncated when I use the form
to update a record.

For instance, say I have a model class called "Users" that has the
following fields:

Name
Email
Phone

I use the fields attribute to display only the "Name" and "Email"
fields on the admin change form page.

Using a custom form (not the admin interface), I then create a record
as follows:

Name: Joe Smith
Email: [EMAIL PROTECTED]
Phone: 609-555-1212

I confirm that the information is in the database.

I then navigate to the admin change form. I see only the "Name" and
"Email" fields (which is what I want). I update the email field (say,
"[EMAIL PROTECTED]"). I click "Save". I go into the database and
what was in the phone field is gone.

Thanks for your help.



--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to