Re: ensuring uniqueness in newforms

2008-04-01 Thread Jonathan Buchanan
On Tue, Apr 1, 2008 at 4:00 AM, msoulier <[EMAIL PROTECTED]> wrote: > > If I have a field, for example a CharField named 'name', which must be > unique, what's the best way to ensure uniqueness whether creating a > new entry or editing an existing one? > > By default, the form won't know if

ensuring uniqueness in newforms

2008-03-31 Thread msoulier
If I have a field, for example a CharField named 'name', which must be unique, what's the best way to ensure uniqueness whether creating a new entry or editing an existing one? By default, the form won't know if it is being used to edit or create, so if you look for duplicates in the db, how