I will try just removing it from the model. Does this mean I should remove the sample_id variable from the Postgres database as well. Will running syncdb create the new id field for that table?
On May 10, 10:33 am, wilbur <w...@unm.edu> wrote: > Using exclude works to eliminate this sample_id field from the form, > but I get a > > 'Null value in column "sample_id" violates not-null constraint' > > If one inserts a record directly through Postgresql command line, the > sample_id field gets incremented automatically with its sequence, but > it does not do so when adding a new record with the Django form... > > On May 10, 10:19 am, Shawn Milochik <sh...@milochik.com> wrote: > > >http://docs.djangoproject.com/en/1.3/ref/contrib/admin/ > > > Check out 'fields' and 'exclude.' -- 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+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.