diff --git a/rrs/views.py b/rrs/views.py index 3a4034a..752485e 100644 --- a/rrs/views.py +++ b/rrs/views.py @@ -166,7 +166,7 @@ def _get_recipe_list(milestone): recipes = Raw.get_reupg_by_date(milestone.end_date) for i,re in enumerate(recipes): - if re.has_key('pv'): + if 'pv' in re: recipes[i]['version'] = re['pv'] recipes_ids.append(re['id']) diff --git a/templates/rrs/recipedetail.html b/templates/rrs/recipedetail.html index 4795822..fc3395c 100644 --- a/templates/rrs/recipedetail.html +++ b/templates/rrs/recipedetail.html @@ -44,7 +44,7 @@