From f3b248110e1e46ce1727d2b9088ab23b20dce9c4 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Thu, 15 Sep 2022 08:19:22 +0100 Subject: [PATCH] Hide updated date when creating unsplash photos --- website/contrib/unsplash/wagtail_hooks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/contrib/unsplash/wagtail_hooks.py b/website/contrib/unsplash/wagtail_hooks.py index ea1b678..3ad142f 100644 --- a/website/contrib/unsplash/wagtail_hooks.py +++ b/website/contrib/unsplash/wagtail_hooks.py @@ -60,7 +60,7 @@ class UnsplashPhotoEditView(EditView): class UnsplashPhotoAdmin(ModelAdmin): model = UnsplashPhoto list_display = ["unsplash_id", "thumbnail", "description", "data_last_updated"] - form_fields_exclude = ["data"] + form_fields_exclude = ["data", "data_last_updated"] search_fields = ["unsplash_id", "data__description"] create_view_class = UnsplashPhotoCreateView index_view_class = UnsplashPhotoIndexView