fix: import Origin at time of use in models.base
was previously removed to prevent circ import
This commit is contained in:
parent
75b2c1adf0
commit
2ca4ddffb0
1 changed files with 3 additions and 0 deletions
|
@ -49,6 +49,9 @@ class Group(AbstractConfiguration):
|
|||
)
|
||||
|
||||
def to_dict(self) -> GroupDict:
|
||||
if not TYPE_CHECKING:
|
||||
from app.models.mirrors import Origin # to prevent circular import
|
||||
|
||||
active_origins_query = (
|
||||
db.session.query(aliased(Origin))
|
||||
.filter(and_(Origin.group_id == self.id, Origin.destroyed.is_(None)))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue