You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/docs/05_flask_smorest/02_data_model_improvements/README.md
-4Lines changed: 0 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -245,8 +245,6 @@ def create_store():
245
245
<TabItemvalue="new"label="create_store (new)">
246
246
247
247
```py title="app.py"
248
-
import uuid
249
-
250
248
@app.post("/store")
251
249
defcreate_store():
252
250
store_data = request.get_json()
@@ -257,8 +255,6 @@ def create_store():
257
255
return store
258
256
```
259
257
260
-
Here we add a new import, [the `uuid` module](https://docs.python.org/3/library/uuid.html). We will be using it to create unique IDs for our items instead of relying on the uniqueness of their `names`.
0 commit comments