Re: Create field from two others

2008-07-04 Thread Luke Seelenbinder
Thanks, for the reply I have since defined a function to handle this. On Thu, Jul 3, 2008 at 11:35 PM, James Bennett <[EMAIL PROTECTED]> wrote: > > On Thu, Jul 3, 2008 at 8:59 PM, lukeqsee <[EMAIL PROTECTED]> wrote: > > > > Can you take a first_name & a last_name field and then in the same > >

Re: Create field from two others

2008-07-03 Thread James Bennett
On Thu, Jul 3, 2008 at 8:59 PM, lukeqsee <[EMAIL PROTECTED]> wrote: > > Can you take a first_name & a last_name field and then in the same > model make a field that is full_name? ie > first_name = models.CharField(max_length=75) > last_name = models.CharField(max_length=75) > full_name =

Create field from two others

2008-07-03 Thread lukeqsee
Can you take a first_name & a last_name field and then in the same model make a field that is full_name? ie first_name = models.CharField(max_length=75) last_name = models.CharField(max_length=75) full_name = models.CharField(value=first_name + last_name, max_length=100) I know that is not