Skip to content

Commit 83d6b1e

Browse files
committed
Merge branch 'master' of github.com:raagin/django-streamfield
2 parents ec001c1 + 54b5992 commit 83d6b1e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

README.md

+6
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)