Link raw_id_fields (both ForeignKeys and ManyToManyFields) to their change pages
UPDATE: Now works in Django 1.4
Based on luc_j:s snippet (http://djangosnippets.org/snippets/2108/) to show values in ManyToManyFields in the admin. This snippets does that, but also links each value to its corresponding admin change page.
To use, just set the raw_id_fields to the value you want, and let your form inherit from ImproveRawIdFieldsForm.
if you change line 45 to the follow it will also support OneToOneRel's
if type in ('ManyToOneRel', 'OneToOneRel'):
also a good ideal to add the following else after line 48 to avoid losing special handling in super's formfield_for_dbfield for raw_id_fields we don't otherwise handle (assuming there's more than 3 types)
# we don't have anything special for this type
return super(ImproveRawIdFieldsForm, self).formfield_for_dbfield(db_field, **kwargs)