django-nonrel/djangoappengine — pull request #4 by wrwrwr (2011-12-13 21:53:41+00:00)
Title: Register an index with dbindexer needed for admin history to work.

When clicking the "History" button in the Django contrib admin an exception is raised asking to add an index definition to models.LogEntry (due to filtering on a TextField). Assuming one uses dbindexer and autoload this will add the index on the appengine level.

I don't know why the LogEntry.object_id is a TextField (all I've got are integers), but probably there are some reasons for that -- hopefully length limitation (my current understanding is that it adds a CharField with max_length=500) introduced by dbindexer does not break something somewhere.

This only works for newly created data, so to actually see existing entires you'll need to dump and reload.