"""Admin configuration for safetymomentum app."""

from django.contrib import admin
from .models import Image, Keyword, Moment

admin.site.register(Image)
admin.site.register(Keyword)
admin.site.register(Moment)

@@ -121,16 +121,347 @@
 Moment%0A%0A
+%0Aclass MomentAdmin(admin.ModelAdmin):%0A%0A    %22%22%22Admin for Moment model.%22%22%22%0A%0A    prepopulated_fields = %7B%22slug%22: (%22title%22,)%7D%0A    exclude = ('author',)%0A%0A    def save_model(self, request, obj, form, change):%0A        %22%22%22Set the user to the request.user.%22%22%22%0A        if not change:%0A            obj.author = request.user%0A        obj.save()%0A%0A
 admin.si
@@ -534,10 +534,23 @@
 r(Moment
+, MomentAdmin
 )%0A

Improve Moments admin