Re: IntegrityError Handling

2007-05-01 Thread Malcolm Tredinnick
On Tue, 2007-05-01 at 05:42 -0700, sandro.dentella wrote: > hi all, > > I noticed that recently has been added InterityError as a common > exception > for all db (django.db.IntegrityError), so I wanted to make my view > aware > of that, but I'm uncertain on how to accomplish this. > > I

IntegrityError Handling

2007-05-01 Thread sandro.dentella
hi all, I noticed that recently has been added InterityError as a common exception for all db (django.db.IntegrityError), so I wanted to make my view aware of that, but I'm uncertain on how to accomplish this. I added a snippet like this one, in a sort of generic view: if form.is_vali