-
Notifications
You must be signed in to change notification settings - Fork 173
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Get spanish translations from active subjects #4445
Get spanish translations from active subjects #4445
Conversation
@@ -116,7 +116,7 @@ def get_products(self, product_type, product_source): | |||
).filter(Q(num_orgs__gt=0) & Q(card_image__isnull=False) & ~Q(card_image='')) | |||
|
|||
subject_translations = Prefetch( | |||
'courses__subjects__translations', | |||
'active_subjects__translations', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This argument should be lookup, I don't think active subjects (a property) would work here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tested it locally, and it appears to be working fine.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
8d1c503
to
43d5e2f
Compare
43d5e2f
to
2c569c2
Compare
This PR updates
populate_product_catalog
command to get Spanish translations from active subjects