Better API i hope
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user