etianen/django-reversion — Issue #94: Upgrading breaks autodiscover on proxy model
Author: dannyadair
Created: 2011-10-19 01:22:06+00:00
State: open

Just upgraded from 1.3.3, getting an exception on startup:

```
File "/home/danny/.virtualenvs/myproject/lib/python2.7/site-packages/reversion/admin.py", line 85, in __init__
self._autoregister(self.model, inline_fields)

File "/home/danny/.virtualenvs/myproject/lib/python2.7/site-packages/reversion/admin.py", line 58, in _autoregister
follow.append(field.name)

AttributeError: 'NoneType' object has no attribute 'name'
```

It seems this commit
https://github.com/etianen/django-reversion/commit/449da5c6d6a5e38dea7ed5eff38e96eedde6ceb7
removed the "if field:" check for proxy fields - can this just be put back in?

Cheers,
Danny