Skip to content

Commit

Permalink
Update how_I_added_django_streamfield.md
Browse files Browse the repository at this point in the history
  • Loading branch information
williln authored Mar 18, 2024
1 parent 2cfb7c3 commit 65caecf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion django/how_I_added_django_streamfield.md
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ def test_rich_text_block(rich_text_block):

### Test the Streamfield on the Product model

This one was trickier, and I want to thank [@FunkBob](https://chaos.social/@FunkyBob/112119091650686006) on Mastodon for helping me figure out how to set this test up. The object with the Streamfield must be reloaded from the db before you can access the `add` method on the Streamfield field to add the blocks.
This one was trickier, and I want to thank [@FunkyBob](https://chaos.social/@FunkyBob/112119091650686006) on Mastodon for helping me figure out how to set this test up. The object with the Streamfield must be reloaded from the db before you can access the `add` method on the Streamfield field to add the blocks.

```python
# products/tests/test_models.py
Expand Down

0 comments on commit 65caecf

Please sign in to comment.