from .models import Log


class LogAdmin(admin.ModelAdmin):
    formfield_overrides = {models.DateTimeField: {'widget': forms.
        DateTimeInput(format='%Y-%m-%d %H:%M:%S.%f')}}
admin.site.register(Log, LogAdmin)
Saving model instance with DateTimeField in Django Admin loses microsecond resolution