Skip to content

Commit f271181

Browse files
authored
Merge pull request #947 from NASA-IMPACT/946-fix-import-bug-in-collectionspy
Fix circular import of the CandidateURL model
2 parents f65c013 + 545e01b commit f271181

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)