django-jet icon indicating copy to clipboard operation
django-jet copied to clipboard

Connection refused by localhost when trying to add a foreign key in new model

Open rust-floppy opened this issue 2 years ago • 0 comments

I have 2 models, one has a foreign key pointing to the other model. When I press "Add item" in the first model, I can press the plus button next to the foreign key field to add another to that model, but when I click it, it says "Connection refused by localhost".

`class Currency(models.Model): name = models.CharField(max_length=200, null=False, blank=False)

class Item(models.Model): name = models.CharField(max_length=200, verbose_name="Megnevezés", blank=False) curr = models.ForeignKey(Currency, max_length=50, blank=False, on_delete=models.CASCADE) `

screenshot: https://imgur.com/a/f1AFAY1

django version: 4.0.6 jet version: newest.

rust-floppy avatar Aug 02 '22 18:08 rust-floppy