If you are absolutely sure the field is filled in (the sequence is
defined) I guess you can allow it to be null in the model definition.

On Tue, May 10, 2011 at 7:33 PM, 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.
>
>

-- 
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.

Reply via email to