Skip to content

Commit

Permalink
Add ImageField demo to example app
Browse files Browse the repository at this point in the history
  • Loading branch information
insspb committed Aug 17, 2022
1 parent ec3a19b commit 3acf114
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions example_app/binary_demo.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ class BinaryDemoModel(db.Document):
binary_field = db.BinaryField()
binary_field_with_default = db.BinaryField(default=lambda: "foobar".encode("utf-8"))
file_field = db.FileField()
image_field = db.ImageField()


def binary_demo_view(pk=None):
Expand Down
2 changes: 1 addition & 1 deletion example_app/templates/layout.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<li><a href="{{ url_for("dates_demo_view") }}">DateTime demo</a></li>
<li><a href="{{ url_for("boolean_demo_view") }}">Booleans demo</a></li>
<li><a href="{{ url_for("dict_demo_view") }}">Dict/Json demo</a></li>
<li><a href="{{ url_for("binary_demo_view") }}">Binary demo</a></li>
<li><a href="{{ url_for("binary_demo_view") }}">Binary/Files/Images demo</a></li>
</ul>
</nav>
<div>
Expand Down

0 comments on commit 3acf114

Please sign in to comment.