I found this post and it was very useful, but i need put the logEntry model into read-only in the admin interface, its that possible?
thanks and sorry for my english!
I found this post and it was very useful, but i need put the logEntry model into read-only in the admin interface, its that possible?
thanks and sorry for my english!
Here is the example from the post you mentioned, with the needed change to make the fields read-only:
from django.contrib.admin.models import LogEntry
class LogEntryAdmin(admin.ModelAdmin):
readonly_fields = ('content_type', 'user', 'action_time')
admin.site.register(LogEntry, LogEntryAdmin)
This works only in Django 1.2 so it is possible you will have to upgrade your Django package.