Models recursion import problem

Hi I have the next situation I have 2 models. I have a recursion when I import, How I can fix this thank

from app.B.models import B1 from app.A.models import A1

A1(models.Model): B1(models.Model):
- -
- -

A2(models.Model):
-
-

Hi @NiuBer98

Welcome to the forum.

Please post more code and a stack trace to demonstrate your exact problem. It’s hard to help debug without that information. Did you read the guide on asking good questions ?

Also, did you see using strings for model references in fields, like ForeignKey? https://docs.djangoproject.com/en/3.0/ref/models/fields/#django.db.models.ForeignKey