Cannot save new recipe #23

Closed
opened 2019-02-18 22:29:45 +00:00 by david · 7 comments
david commented 2019-02-18 22:29:45 +00:00 (Migrated from dev.cryptec.at)

https://sentry.cryptec.at/sentry/cookingcryptecat-backend/issues/5/

KeyError: 'ingredient_extra'
(10 additional frame(s) were not displayed)
...
  File "rest_framework/mixins.py", line 21, in create
    self.perform_create(serializer)
  File "rest_framework/mixins.py", line 26, in perform_create
    serializer.save()
  File "rest_framework/serializers.py", line 214, in save
    self.instance = self.create(validated_data)
  File "claypot/api/serializers.py", line 161, in create
    return self.update(instance, validated_data)
  File "claypot/api/serializers.py", line 202, in update
    obj.ingredient_extra = ri['ingredient_extra']

KeyError: 'ingredient_extra'
https://sentry.cryptec.at/sentry/cookingcryptecat-backend/issues/5/ ``` KeyError: 'ingredient_extra' (10 additional frame(s) were not displayed) ... File "rest_framework/mixins.py", line 21, in create self.perform_create(serializer) File "rest_framework/mixins.py", line 26, in perform_create serializer.save() File "rest_framework/serializers.py", line 214, in save self.instance = self.create(validated_data) File "claypot/api/serializers.py", line 161, in create return self.update(instance, validated_data) File "claypot/api/serializers.py", line 202, in update obj.ingredient_extra = ri['ingredient_extra'] KeyError: 'ingredient_extra' ```
david commented 2019-02-18 22:31:22 +00:00 (Migrated from dev.cryptec.at)

changed milestone to %1

changed milestone to %1
david commented 2019-02-18 22:41:38 +00:00 (Migrated from dev.cryptec.at)

mentioned in commit c5b4e5aabf

mentioned in commit c5b4e5aabf26d82f3e5580861961aee425eeac15
david commented 2019-02-18 22:41:49 +00:00 (Migrated from dev.cryptec.at)

mentioned in merge request !88

mentioned in merge request !88
david commented 2019-02-18 22:42:48 +00:00 (Migrated from dev.cryptec.at)

closed via commit 8c6aad4d40

closed via commit 8c6aad4d40d17a5df73b21c854808758c1ba2624
david commented 2019-02-18 22:42:48 +00:00 (Migrated from dev.cryptec.at)

closed via merge request !88

closed via merge request !88
david commented 2019-02-18 22:42:48 +00:00 (Migrated from dev.cryptec.at)

closed via commit c5b4e5aabf

closed via commit c5b4e5aabf26d82f3e5580861961aee425eeac15
david commented 2019-02-18 23:18:39 +00:00 (Migrated from dev.cryptec.at)

mentioned in commit 8c6aad4d40

mentioned in commit 8c6aad4d40d17a5df73b21c854808758c1ba2624
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
root/claypot#23
No description provided.