Merge branch 'master-is_homepage-warning' into 'master'

[FIX] 'website.menu.write() with unknown fields: is_homepage' when change menu sequence on website

See merge request flectra-hq/flectra!57
This commit is contained in:
Parthiv Patel 2018-05-09 04:53:55 +00:00
commit 4099b257df

View File

@ -981,6 +981,7 @@ class Menu(models.Model):
if to_delete:
self.browse(to_delete).unlink()
for menu in data['data']:
del menu['is_homepage']
mid = menu['id']
# new menu are prefixed by new-
if isinstance(mid, pycompat.string_types):