Re: Problem when deleting a register from the database

2007-07-27 Thread AnaReis
On Jul 26, 4:24 pm, Nis Jørgensen <[EMAIL PROTECTED]> wrote: > AnaReis skrev: > > > Hi all! > > I have a delete that isn't working properly. It deletes more than 1 > > register when it shouldn't because I'm specifying the primary key in > > the filter. > > The class file is this: > > class

Re: Problem when deleting a register from the database

2007-07-26 Thread Nis Jørgensen
AnaReis skrev: > Hi all! > I have a delete that isn't working properly. It deletes more than 1 > register when it shouldn't because I'm specifying the primary key in > the filter. > The class file is this: > class UserInstrument(models.Model): > user_name = models.CharField(primary_key=True,

Problem when deleting a register from the database

2007-07-26 Thread AnaReis
Hi all! I have a delete that isn't working properly. It deletes more than 1 register when it shouldn't because I'm specifying the primary key in the filter. The class file is this: class UserInstrument(models.Model): user_name = models.CharField(primary_key=True, maxlength=60)