Hide updated date when creating unsplash photos
This commit is contained in:
parent
592da67185
commit
f3b248110e
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue