Skip to content

Commit 54b5992

Browse files
authored
Update README.md
1 parent 26d1983 commit 54b5992

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -463,6 +463,12 @@ page.stream.add(r)
463463
page.stream.add([im1, im2])
464464
page.save()
465465
```
466+
> Note: If you create a new instance of page in shell, before using `add` method, you need to call instance form db. Because field `stream` should be wrapped in StreamObject
467+
```python
468+
page = Page()
469+
page.save()
470+
page.refresh_from_db()
471+
```
466472

467473
### Set size of block's popup window
468474
Add `popup_size` attribute to StreamField

0 commit comments

Comments
 (0)