Hide updated date when creating unsplash photos

This commit is contained in:
Jake Howard 2022-09-15 08:19:22 +01:00
parent 592da67185
commit f3b248110e
Signed by: jake
GPG key ID: 57AFB45680EDD477

View file

@ -60,7 +60,7 @@ class UnsplashPhotoEditView(EditView):
class UnsplashPhotoAdmin(ModelAdmin): class UnsplashPhotoAdmin(ModelAdmin):
model = UnsplashPhoto model = UnsplashPhoto
list_display = ["unsplash_id", "thumbnail", "description", "data_last_updated"] 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"] search_fields = ["unsplash_id", "data__description"]
create_view_class = UnsplashPhotoCreateView create_view_class = UnsplashPhotoCreateView
index_view_class = UnsplashPhotoIndexView index_view_class = UnsplashPhotoIndexView