sehmaschine/django-grappelli — pull request #84 by fourk (2012-02-09 01:06:25+00:00)
Title: Update documentation to warn against using tuples. Also, fix a typo.

This fixes a typo, as well as includes a warning against using tuples for the `related_lookup_fields` and `autocomplete_lookup_fields`. This warning is the result of a bug I wrestled with for a while today. Here's an example of how to replicate it:

autocomplete_lookup_fields = {
'generic': (('content_type', 'object_id'),)
}

The above is output to the template for parsing via javascript as:

var autocomplete_fields_generic = [('content_type', 'object_id')];

When the expected output is:

var autocomplete_fields_generic = [['content_type', 'object_id']];