Manual order: you can now change the order by dragging and dropping

This commit is contained in:
Mahmoud
2023-12-25 19:44:23 +01:00
parent 45c14f6a12
commit 42839a5886
4 changed files with 157 additions and 121 deletions

View File

@@ -950,7 +950,7 @@ class RecipeBookSerializer(SpacedModelSerializer, WritableNestedModelSerializer)
class Meta:
model = RecipeBook
fields = ('id', 'name', 'description', 'shared', 'created_by', 'filter')
fields = ('id', 'name', 'description', 'shared', 'created_by', 'filter', 'order')
read_only_fields = ('created_by',)