Re: handling unique entries

2008-09-05 Thread David
Thanks Karen, I've updated. On Sep 4, 6:02 pm, "Karen Tracey" <[EMAIL PROTECTED]> wrote: > On Thu, Sep 4, 2008 at 12:52 PM, David <[EMAIL PROTECTED]> wrote: > > > In the admin, I just get a trace of errors yayks! > > What level of Django are you running?  Code was added to admin fairly > rece

Re: handling unique entries

2008-09-04 Thread Karen Tracey
On Thu, Sep 4, 2008 at 12:52 PM, David <[EMAIL PROTECTED]> wrote: > > In the admin, I just get a trace of errors yayks! > > What level of Django are you running? Code was added to admin fairly recently to properly check unique constraints: http://code.djangoproject.com/ticket/8209 If you ar

Re: handling unique entries

2008-09-04 Thread David
In the admin, I just get a trace of errors yayks! On Sep 3, 5:28 pm, [EMAIL PROTECTED] wrote: > In the admin, or on the site in a view? > > On Sep 3, 12:12 pm, David <[EMAIL PROTECTED]> wrote: > > > Hi, > > when setting (for example) > > name = models.CharField('Name', max_length=50, unique

Re: handling unique entries

2008-09-03 Thread mccomas . chris
In the admin, or on the site in a view? On Sep 3, 12:12 pm, David <[EMAIL PROTECTED]> wrote: > Hi, > when setting (for example) > name = models.CharField('Name', max_length=50, unique = True) > How does one go about handling the exception if a name is entered > that > already exists in the databa

handling unique entries

2008-09-03 Thread David
Hi, when setting (for example) name = models.CharField('Name', max_length=50, unique = True) How does one go about handling the exception if a name is entered that already exists in the database? Thanks, David, --~--~-~--~~~---~--~~ You received this message because