Re: Issue with unique key error on Many to Many field

2019-11-10 Thread Malibu
Hi, thanks for the answer. Of course, the moment I posted the question I figured out what it was. I ended up checking my primary keys, and found that they didn't have unique constraints. I added them and all was fine. Must have fallen off during an import. On Sunday, 10 November 2019 13:55:0

Re: Issue with unique key error on Many to Many field

2019-11-10 Thread Integr@te System
Hi Issuer, Check your tracker_passenger. https://docs.djangoproject.com/en/2.2/ref/models/fields/#django.db.models.ManyToManyField On Sun, Nov 10, 2019, 21:40 Malibu wrote: > Hi there. I've been doing Django for awhile but I am stumped on this > one.. I have a many to many relationship with

Issue with unique key error on Many to Many field

2019-11-10 Thread Malibu
Hi there. I've been doing Django for awhile but I am stumped on this one.. I have a many to many relationship with a 'through' definition main.models: class Client(models.Model): uid = models.CharField(max_length=128, unique=True) key = models.CharField(max_length=128) img = model