Skip to content

Commit 545e01b

Browse files
committed
Fix circular import of the CandidateURL model
1 parent f65c013 commit 545e01b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

sde_collections/models/collection.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
format_slack_message,
2020
send_slack_message,
2121
)
22-
from .candidate_url import CandidateURL
2322
from .collection_choice_fields import (
2423
ConnectorChoices,
2524
CurationStatusChoices,
@@ -111,7 +110,7 @@ def add_to_public_query(self):
111110

112111
@property
113112
def included_urls_count(self):
114-
return CandidateURL.objects.filter(collection=self, excluded=False).count()
113+
return self.candidate_urls.filter(excluded=False).count()
115114

116115
@property
117116
def _scraper_config_path(self) -> str:

0 commit comments

Comments
 (0)