mirror of
https://github.com/TandoorRecipes/recipes.git
synced 2026-01-01 04:10:06 -05:00
fixed serializer and step editor
This commit is contained in:
@@ -649,7 +649,7 @@ class RecipeSimpleSerializer(WritableNestedModelSerializer):
|
||||
|
||||
@extend_schema_field(str)
|
||||
def get_url(self, obj):
|
||||
return reverse('view_recipe', args=[obj.id])
|
||||
return f'recipe/{obj.pk}'
|
||||
|
||||
def create(self, validated_data):
|
||||
# don't allow writing to Recipe via this API
|
||||
|
||||
Reference in New Issue
Block a user