Re: circular imports error

2021-06-11 Thread Adam Stein
Glad to be of help. Sometimes it just takes a fresh pair of eyes. On Fri, 2021-06-11 at 17:33 -0500, frank dilorenzo wrote: > I hate to sound corny but you sir are my hero!.  Thanks,  it all > works now >   > frank- > > > On Fri, Jun 11, 2021 at 2:43 PM Adam Stein wrote: > > Since you said 3 se

Re: circular imports error

2021-06-11 Thread frank dilorenzo
I hate to sound corny but you sir are my hero!. Thanks, it all works now frank- On Fri, Jun 11, 2021 at 2:43 PM Adam Stein wrote: > Since you said 3 separate apps, I assume each of these classes are in a > separate file. However, you have the line: > > from .models import Supplier > > which

Re: circular imports error

2021-06-11 Thread Adam Stein
Since you said 3 separate apps, I assume each of these classes are in a separate file. However, you have the line: from .models import Supplier which would make it seem that Supplier is defined in the same file as Shipment. Shipment should be in ".models" and if Supplier is also defined in the s

circular imports error

2021-06-11 Thread frank dilorenzo
Hello, I have 3 separate app as follow: from django.db import models # Create your models here. # Supplier can have many shipments class Supplier(models.Model): name = models.CharField(max_length=120, null=True) phone = models.CharField(max_length=15, null=True) email = models.CharField(max_leng