From cfbde55734d5e911ccc23e47f196196838a4e1c1 Mon Sep 17 00:00:00 2001 From: resteve Date: Mon, 15 Dec 2014 10:39:42 +0100 Subject: [PATCH] pyflakes --- tutorial.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tutorial.py b/tutorial.py index 8e3690c..8e83304 100644 --- a/tutorial.py +++ b/tutorial.py @@ -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