Better API i hope

This commit is contained in:
Holger Sielaff
2026-02-04 16:49:23 +01:00
parent 6947b70764
commit 6aa74c5e6c
4 changed files with 24 additions and 21 deletions
+1 -1
View File
@@ -78,7 +78,7 @@ def translatable_context(language):
with translatable_context('de'):
products = Product.objects.search('moep') # Searches in German
for product in products:
print(product.name) # Shows German name
logging.debug(product.name) # Shows German name
"""
with TranslatableContext(language):
yield