[FIX] 'website.menu.write() with unknown fields: is_homepage' when change menu sequence on website
This commit is contained in:
parent
1d4568c657
commit
ff3d93dfb7
@ -981,6 +981,7 @@ class Menu(models.Model):
|
|||||||
if to_delete:
|
if to_delete:
|
||||||
self.browse(to_delete).unlink()
|
self.browse(to_delete).unlink()
|
||||||
for menu in data['data']:
|
for menu in data['data']:
|
||||||
|
del menu['is_homepage']
|
||||||
mid = menu['id']
|
mid = menu['id']
|
||||||
# new menu are prefixed by new-
|
# new menu are prefixed by new-
|
||||||
if isinstance(mid, pycompat.string_types):
|
if isinstance(mid, pycompat.string_types):
|
||||||
|
Loading…
Reference in New Issue
Block a user