mirror of
https://github.com/NaN-tic/trytond-galatea_tutorial.git
synced 2023-12-14 02:32:55 +01:00
pyflakes
This commit is contained in:
parent
f52e6c51a4
commit
cfbde55734
1 changed files with 1 additions and 2 deletions
|
@ -6,7 +6,6 @@ from trytond.pool import Pool
|
|||
from trytond.transaction import Transaction
|
||||
from trytond.cache import Cache
|
||||
from .tools import slugify
|
||||
from datetime import datetime
|
||||
|
||||
__all__ = ['GalateaTutorial', 'GalateaTutorialWebSite', 'GalateaTutorialComment']
|
||||
|
||||
|
@ -94,7 +93,7 @@ class GalateaTutorial(ModelSQL, ModelView):
|
|||
slugs = {}
|
||||
for lang in langs:
|
||||
with Transaction().set_context(language=lang.code):
|
||||
tutorial, = Tutorial.read([tutorial], ['slug'])
|
||||
tutorial, = Tutorial.read([tutorial_id], ['slug'])
|
||||
slugs[lang.code] = tutorial['slug']
|
||||
|
||||
return slugs
|
||||
|
|
Loading…
Reference in a new issue