From 43e40716e74dec14d83f668c7c6005d06dffff0d Mon Sep 17 00:00:00 2001 From: Sepehr Akbarzadeh Date: Thu, 17 Oct 2024 21:26:30 +0330 Subject: [PATCH] fix(circular-import-error): fix circular import error of invoice --- sage_invoice/api/serializers/invoice.py | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/sage_invoice/api/serializers/invoice.py b/sage_invoice/api/serializers/invoice.py index e4cdfec..f674cfd 100644 --- a/sage_invoice/api/serializers/invoice.py +++ b/sage_invoice/api/serializers/invoice.py @@ -1,12 +1,11 @@ from rest_framework import serializers -from sage_invoice.api.serializers import ( - CategorySerializer, - ColumnSerializer, - ExpenseSerializer, - ItemSerializer, -) -from sage_invoice.models import Category, Invoice +from .category import CategorySerializer +from .column import ColumnSerializer +from .item import ItemSerializer +from .expense import ExpenseSerializer + +from sage_invoice.models import Invoice class ContactFieldSerializer(serializers.Serializer):