From 3acf114454d127d527579c7d554d1deb07766876 Mon Sep 17 00:00:00 2001 From: Andrey Shpak Date: Wed, 17 Aug 2022 12:54:25 +0300 Subject: [PATCH] Add ImageField demo to example app --- example_app/binary_demo.py | 1 + example_app/templates/layout.html | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/example_app/binary_demo.py b/example_app/binary_demo.py index a5400199..d61857bb 100644 --- a/example_app/binary_demo.py +++ b/example_app/binary_demo.py @@ -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): diff --git a/example_app/templates/layout.html b/example_app/templates/layout.html index 1b307770..44533edc 100644 --- a/example_app/templates/layout.html +++ b/example_app/templates/layout.html @@ -23,7 +23,7 @@
  • DateTime demo
  • Booleans demo
  • Dict/Json demo
  • -
  • Binary demo
  • +
  • Binary/Files/Images demo