Commit 39e94fc4 authored by Thom Wiggers's avatar Thom Wiggers 📐
Browse files

Merge branch '275-warning-original-images' into 'master'

Warning that full-sized photos are not saved

Closes #275

See merge request !297
parents d18859db b3674097
...@@ -61,6 +61,17 @@ class AlbumAdmin(admin.ModelAdmin): ...@@ -61,6 +61,17 @@ class AlbumAdmin(admin.ModelAdmin):
except OSError: except OSError:
messages.add_message(request, messages.WARNING, messages.add_message(request, messages.WARNING,
"Ignoring {}".format(f.name)) "Ignoring {}".format(f.name))
messages.add_message(request, messages.WARNING,
"Full-sized photos will not be saved on the "
"Thalia-website.")
class PhotoAdmin(admin.ModelAdmin):
def save_model(self, request, obj, form, change):
obj.save()
messages.add_message(request, messages.WARNING,
"Full-sized photos will not be saved on the "
"Thalia-website.")
admin.site.register(Album, AlbumAdmin) admin.site.register(Album, AlbumAdmin)
admin.site.register(Photo) admin.site.register(Photo, PhotoAdmin)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment