fix saving old list
This commit is contained in:
@ -687,6 +687,7 @@ class ShoppingListEntrySerializer(WritableNestedModelSerializer):
|
|||||||
return fields
|
return fields
|
||||||
|
|
||||||
def run_validation(self, data):
|
def run_validation(self, data):
|
||||||
|
if self.root.instance.__class__.__name__ == 'ShoppingListEntry':
|
||||||
if (
|
if (
|
||||||
data.get('checked', False)
|
data.get('checked', False)
|
||||||
and self.root.instance
|
and self.root.instance
|
||||||
|
@ -504,6 +504,14 @@
|
|||||||
</div>
|
</div>
|
||||||
</b-form-group>
|
</b-form-group>
|
||||||
</ContextMenuItem>
|
</ContextMenuItem>
|
||||||
|
<ContextMenuItem
|
||||||
|
@click="
|
||||||
|
$refs.menu.close()
|
||||||
|
updateChecked({ entries: contextData, checked: true })
|
||||||
|
"
|
||||||
|
>
|
||||||
|
<a class="dropdown-item p-2" href="#"><i class="fas fa-check-square"></i> {{ $t("mark_complete") }}</a>
|
||||||
|
</ContextMenuItem>
|
||||||
|
|
||||||
<ContextMenuItem
|
<ContextMenuItem
|
||||||
@click="
|
@click="
|
||||||
|
@ -276,5 +276,6 @@
|
|||||||
"csv_prefix_label": "List Prefix",
|
"csv_prefix_label": "List Prefix",
|
||||||
"copy_markdown_table": "Copy as Markdown Table",
|
"copy_markdown_table": "Copy as Markdown Table",
|
||||||
"in_shopping": "In Shopping List",
|
"in_shopping": "In Shopping List",
|
||||||
"DelayUntil": "Delay Until"
|
"DelayUntil": "Delay Until",
|
||||||
|
"mark_complete": "Mark Complete"
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user