Thank you for your reply, Rajesh. The two fields in question are actually "pending_referrer_name" and "pending_referrer_email". In the admin class code below, I include them in the fields attribute. However, initially I did not and that is when the problem would occur.
Here is the model code: class Resource(models.Model): first_name = models.CharField(maxlength=32) last_name = models.CharField(maxlength=64) resource_type = models.ForeignKey('ResourceType', verbose_name='Type of practice') title = models.CharField(maxlength=128, blank=True, null=True) practice_name = models.CharField(null=True, blank=True, maxlength=128) address1 = models.CharField(maxlength=128) address2 = models.CharField(maxlength=64, blank=True, null=True) city = models.CharField(maxlength=64) state_or_province = models.ForeignKey('State_Province') zip = models.CharField(maxlength=16) country = models.ForeignKey('Country') email = models.EmailField(unique=True) phone = models.CharField(maxlength=24) phone2 = models.CharField(maxlength=24, blank=True, null=True) description = models.TextField(maxlength=400, verbose_name='Short Description') photo = models.ImageField(upload_to='resourcesguide/photos', blank=True, null=True) site_url = models.URLField(verify_exists=False, blank=True, null=True, verbose_name='Website') office_hours = models.TextField(maxlength=200, blank=True, null=True) additional_locations = models.TextField(maxlength=200, blank=True, null=True) personal_statement = models.TextField(blank=True, null=True, maxlength=1500) services_and_specialties = models.TextField(blank=True, null=True, maxlength=1500) credentials = models.TextField(blank=True, null=True, maxlength=1500, verbose_name='Education and Credentials') affiliations = models.TextField(blank=True, null=True, maxlength=1500, verbose_name='Insurance and managed care') payment = models.TextField(blank=True, null=True, maxlength=1500, verbose_name='Payment policies') pending_referrer_name = models.CharField(maxlength=48, blank=True, null=True) pending_referrer_email = models.CharField(maxlength=64, blank=True, null=True) # From here down is for internal use only display_on_website = models.BooleanField() recommended_by = models.ForeignKey('Referrer', null=True, blank=True) paypal_number = models.CharField(maxlength=24, null=True, blank=True) initial_solicitation = models.DateField(null=True, blank=True) initial_invoice = models.DateField(blank=True, null=True) comments = models.TextField(blank=True, null=True, verbose_name='History') do_not_email = models.BooleanField() referrer_solicitation_email_sent = models.DateField(blank=True, null=True) And the admin code: class Admin: list_display = ('last_name', 'first_name', 'practice_name', 'email', 'phone', 'recommended_by_', 'display_on_website') search_fields = ('last_name', 'first_name', 'practice_name', 'recommended_by.name') list_filter = ('city', 'state_or_province', 'zip', 'country') fields = (('Service provider information', {'fields': ('resource_type', 'first_name', 'last_name', 'title', 'practice_name', 'address1', 'address2', 'city', 'state_or_province', 'zip', 'country', 'phone', 'phone2', 'email', 'site_url', 'description', 'additional_locations', 'office_hours', 'personal_statement', 'services_and_specialties', 'credentials', 'affiliations', 'payment', 'photo')}), #('Referral information', {'fields': ('recommended_by',)}), ('Administrative information', {'fields': ( 'display_on_website', 'do_not_email', 'initial_solicitation', 'initial_invoice', 'comments', 'paypal_number', 'pending_referrer_name', 'pending_referrer_email')})) On Dec 2, 4:27 pm, Rajesh Dhawan <[EMAIL PROTECTED]> wrote: > > 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. > > The Admin's default ModelForm updates only the declared fields if you > do declare them explicitly (either via "fieldsets" or via > "fields"/"exclude".) Can you share your model and admin code? > > -Rajesh D- Hide quoted text - > > - Show quoted text - --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---