Commits

Raimon Esteve (Zikzakmedia) committed d3c4604

has_key deprecated

Comments (0)

Files changed (1)

         })
 
     def create(self, values):
-        if values.has_key('template') and not values['template']:
+        if values.get('template') and not values['template']:
             values = values.copy()
             values.pop('template')
         return super(Product, self).create(values)